Feed data storage and query method and device

A query method and data query technology, applied in other database queries, other database retrievals, other database indexes, etc., can solve the problem of not supporting viewing "read feed" data, not supporting server-side "read feed" data query, etc. problem, to achieve the effect of strong function, high stability and easy to use

CN105808618BActive Publication Date: 2019-10-22ALIBABA GRP HLDG LTD
5 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Publication Date
2019-10-22

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a method for storing and querying Feed data and a device thereof. The method for storing and querying Feed data includes the following steps: segmenting the Feed data of each user, and each segment includes: first data, The second data and the third data form a linked list structure between each shard; each shard is stored in the storage system; when the user issues a query request for feed data, the current shard is obtained from the query request. The unique identifier is used to query the storage system using the unique identifier of the current shard as a keyword; and the third data in the shard where the second data that successfully matches the keyword is stored on the storage system is pointed to by the shard. The first data and the second data are returned to the user. The present invention is based on storing the feed content data in slices in the system, thereby reducing the number of queries that hit the feed content data. It improves the system's efficient reading and writing capabilities for small data blocks, effectively reduces the server's response time, and improves efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the field of data storage and query, in particular to a method and device for storing and querying Feed data. Background technique

[0002] Feed data refers to the source of news, also known as source material, feed, information feed, feed, abstract, source, news feed, network source, etc. It is a data format through which websites can disseminate the latest information to Users, the prerequisite for users to be able to subscribe to the website is that the website can provide continuously updated information. News sources are widely used by blogs and news sites, as these types of sites are frequently updated. Feed flow presentation is that the user accesses the server through the client, and the data seen is sorted based on the timeline, that is, the data returned by the server must be greater than the time of the last request. Similar to domestic Weibo, foreign Twitter and so on.

[0003] With the popularity of domestic Wei...

Examples

Embodiment Construction

[0039] In the following description, many technical details are proposed in order to enable readers to better understand the application. However, those skilled in the art can understand that without these technical details and various changes and modifications based on the following implementation modes, the technical solution claimed in each claim of the present application can be realized.

[0040] In order to make the purpose, technical solution and advantages of the present invention clearer, the following will further describe the implementation of the present invention in detail in conjunction with the accompanying drawings.

[0041] The first embodiment of the present invention relates to a method for storing and querying feed data. figure 1 It is a flow diagram of the method for storing and querying the feed data.

[0042]Specifically, the method for storing and querying the feed data divides the user's feed data according to fixed constants, and the divided data is ...