Home  >  Article  >  Backend Development  >  What is the mechanism for non-duplication of click-to-refresh data like Toutiao and other communities?

What is the mechanism for non-duplication of click-to-refresh data like Toutiao and other communities?

WBOY
WBOYOriginal
2016-10-23 00:12:521792browse

1. In Toutiao, the refreshed data is different every time you pull down. Normally, the news will be stored in a table, and the oldest data will be placed in front, and the top data will not change again if it is refreshed.
The same is true for her community. (I will not discuss the recommendation algorithm of Toutiao)

Reply content:

1. In Toutiao, the refreshed data is different every time you pull down. Normally, the news will be stored in a table, and the oldest data will be placed in front, and the top data will not change even if it is refreshed.
The same is true for her community. (I will not discuss the recommendation algorithm of Toutiao)

Personally, I think it should be the paging principle used. The first pull-down refresh corresponds to the first page, the second time to the second page, and then the backend queries the database based on this number of times

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn