How does the Segmentfault in the station remind merge?

Source: Internet
Author: User
Feel the SF station reminds the design is very humane, pondering half a day, there are several problems:
+ Notification type merging (answer notification, reply notification, like notification)
+ Notification of the combination of unread quantities (same type of notification, unread quantity merged, 10 people like the same topic, only one not notified)
+ If you only fetch 20 data on a page, but these 20 are the same type, how do you design a scenario that requires a merge notification? A merger, there is only one, and 20 of the merger may not be a problem, but if it is a hot topic, 1000 of the replies are merged together?

Want to know about these three situations, how SF is designed.
If you consider the data table splitting, how will such a merger be designed?

Reply content:

Feel the SF station reminds the design is very humane, pondering half a day, there are several problems:
+ Notification type merging (answer notification, reply notification, like notification)
+ Notification of the combination of unread quantities (same type of notification, unread quantity merged, 10 people like the same topic, only one not notified)
+ If you only fetch 20 data on a page, but these 20 are the same type, how do you design a scenario that requires a merge notification? A merger, there is only one, and 20 of the merger may not be a problem, but if it is a hot topic, 1000 of the replies are merged together?

Want to know about these three situations, how SF is designed.
If you consider the data table splitting, how will such a merger be designed?

For OLTP-type transactional databases, it is not required to be merged when saved, and is counted according to various types of notifications when displayed.
Answers, replies, likes and other events are different, and if the user needs this information, they must be saved to the database.

For data warehouses, data can be counted on demand, but determining the "granularity" of the Save is critical. The granularity is large and the details are lost. Small size, large amount of data.

  • 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.