Method and device for acquiring data

A technology of data acquisition and acquisition method, applied in the field of communication, can solve the problem of increasing the overall data waiting delay, and achieve the effects of reducing data feedback delay, improving satisfaction, and improving efficiency

Active Publication Date: 2012-10-17
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF9 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In the existing microblog system, when processing the user's data acquisition request, the data to be acquired is acquired one by one, and the operation of acquiring the next data can only be performed after the acquisition of the previous data is completed, thus increasing the waiting time for acquiring the overall data extend

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for acquiring data
  • Method and device for acquiring data
  • Method and device for acquiring data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0048] like figure 1 As shown, the embodiment of the present invention provides a method for obtaining data, and the method includes the following steps:

[0049] S101: Receive at least one first data acquisition request, where the first data acquisition request carries a data selection condition;

[0050] S102: According to the data selection condition, obtain all data identifiers satisfying the data selection condition;

[0051] S103: Obtain all data corresponding to the data identifier in parallel according to the data identifier, and return the corresponding data.

[0052] It should be noted that the execution subject of each step of this embodiment may be a server for acquiring data, or may be another device having the functions of each step of this embodiment.

[0053]The embodiment of the present invention acquires all the data identifiers satisfying the data selection conditions; and according to the data identifiers, obtains all the data corresponding to the data id...

Embodiment 2

[0055] like figure 2 As shown, the embodiment of the present invention provides a data acquisition method, the method includes the following steps:

[0056] S201: Receive at least one first data acquisition request;

[0057] In this embodiment, the first data acquisition request carries a data selection condition, and the first data acquisition request is used to request acquisition of at least one piece of data that meets the data selection condition.

[0058] For example, taking the microblog system as an example, microblog user A has three followers, and microblog user B can obtain the follower information of microblog user A by sending the first data acquisition request, then the first data acquisition request carries The data selection condition of is "followers of user B".

[0059] S202: Obtain all data identifiers satisfying the data selection condition according to the data selection condition;

[0060] In this embodiment, the data identifier corresponding to the d...

Embodiment 3

[0085] like image 3 As shown, the embodiment of the present invention provides a data acquisition method, the method includes steps S301-S307, wherein, S301-S302 is the same as S201-S202 in Embodiment 2; S305-S307 is the same as S203 in Embodiment 2 ~S205 are the same, and will not be repeated here. The difference from Embodiment 2 is that this embodiment also includes the following steps:

[0086] S301-S307 are the same as Embodiment 2, and will not be repeated here. The difference from Embodiment 2 is that this embodiment also includes:

[0087] S303: Query whether there is data corresponding to the data identifier in the corresponding relationship between the data identifier and the data in the local cache, if yes, execute S304; if not, execute S305.

[0088] S304: Obtain data corresponding to the data identifier, and return the corresponding data.

[0089] For example, when the second data acquisition request received is that the data identifiers corresponding to the da...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for acquiring data, which comprises the following steps of: receiving at least one first data acquiring request carrying data selection condition; acquiring a data identifier meeting the data selection condition according to the data selection condition; and acquiring all data corresponding to the data identifier in parallel according to the data identifier and going back to the corresponding data. The invention also discloses a device for acquiring the data, which comprises a data acquiring request receiving module, a data identifier acquiring module and a first data acquiring data. According to the embodiment provided by the invention, the identifier of data is determined according to the data selection condition, and all data corresponding to the data identifier is acquired according to the data identifier at one time. According to the invention, data feedback delay due to one-by-one data acquirement order in the prior art is reduced; and parallel data acquisition is performed to improve the data acquirement efficiency, so that data can be fed back to a user in time so as to improve the satisfaction of the data user.

Description

technical field [0001] The present invention relates to the technical field of communication, and in particular to a data acquisition method and device. Background technique [0002] In microblog-type systems, with the continuous increase in the number of users and the amount of information released by each user, the total amount of data generated by the microblog system begins to expand rapidly, thus forming a massive amount of data. When microblog users use the microblog system, they can obtain the data they need from the massive data stored in the microblog system through methods provided by the microblog system, such as searching. How to quickly present these massive amounts of data to a large number of users is a major problem faced by Weibo background technology. [0003] According to the existing technical solution, when the microblog information acquisition system receives the user's data acquisition request, according to the data acquisition conditions set by the u...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
CPCH04L67/32G06F17/30386H04L67/00H04L67/325G06F17/30G06F16/24H04L67/60
Inventor 袁清
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products