Answer the question
In order to leave comments, you need to log in
How to avoid duplicate content when uploading?
I have a table with news in my database. when the page is loaded, 10 posts are loaded, when scrolling to the bottom, the current page is transferred to the server and 10 more are loaded using (limit and offset). The problem is that if at the moment when the user was flipping through the feed and someone added a new post, the entries in the database will shift and the last entry will be duplicated.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question