How to avoid duplicate content in non-time-sequential infinite-scroll activity stream?
-
To implement an infinite-scroll while dynamic activity stream, one problem is to avoid duplicate content. The activity stream is sorted by scores not exactly same as creation time. In Facebook feeds stream, the sequence of content might not be ordered by time. So is Quora. Say, after the first page is loaded by browser or client, while user scroll down, a request is sent to server with the last content ID. So, the server can retrieve content "before" the last content. This works pretty well for time sequential activity. But what about activity stream not time sequential, like popularity sequential. For example, one content is popular and is enrolled in the first page. After a while, its popularity is down and should be in second page. If one client load first page when that content is in first page and the scroll load the second page when its popularity is down, the client behold duplicate content. So, any approach to avoid it?
-
Answer:
Assuming that your feed is assembled in real time, you can just keep a pool of activities that are already shown on the feed. So, when assembling the feed, just ignore those activities. You can do this easily by passing the shown activity ids when requesting the sequential pages of your feed.
Siong Ong at Quora Visit the source
Related Q & A:
- How To Avoid Recaptcha?Best solution by Stack Overflow
- How To Avoid Power Cut?Best solution by Yahoo! Answers
- How To Avoid On Omegle?Best solution by wikihow.com
- How to prevent duplicate entries in MySQL and PHP?Best solution by Stack Overflow
- Does Google penalize you for duplicate content?Best solution by support.google.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.