Home > Backend Development > PHP Tutorial > 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
Release: 2016-10-23 00:12:52
Original
1841 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template