What is the implementation of display content on zhihu homepage based on the following tag?

Source: Internet
Author: User
You can use a feed table and a feeditem table to sort data by time. However, zhihu homepage 1. Displays content based on the following tags. 2. The content is sorted by weight. If mysql is used, I/O is too frequent because of frequent changes in likes and replies. If redis is used... you can use a feed table and a feeditem table to sort data by time. However, zhihu homepage 1. Displays content based on the following tags. 2. The content is sorted by weight.

If mysql is used, I/O is too frequent because of frequent changes in the like and reply actions. If redis is used, the content under a tag is stored in an ordered collection, you can think of a tag set as a black box, so that the user does not need to retrieve all data based on the tag to perform a total sorting. How does one implement it?

Reply content:

You can use a feed table and a feeditem table to sort data by time. However, zhihu homepage 1. Displays content based on the following tags. 2. The content is sorted by weight.

If mysql is used, I/O is too frequent because of frequent changes in the like and reply actions. If redis is used, the content under a tag is stored in an ordered collection, you can think of a tag set as a black box, so that the user does not need to retrieve all data based on the tag to perform a total sorting. How does one implement it?

I don't think it is so complicated. This is not a sort process but a push process.

Previously, it was pushed by time, and now it is pushed by importance

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.