Method and device for data query

A technology for querying data and data, applied in the field of querying data, it can solve the problems of expired data and whether the hierarchical data has expired, etc., and achieve the effect of improving effectiveness

Active Publication Date: 2018-11-02
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF7 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The data query system in the prior art usually queries the set or quantity of identifiers related to the identifier in the sub-level according to the identifier located in the parent layer, and usually does not consider whether the stored hierarchical data has expired, so as to return to the user Data may be outdated

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 data query
  • Method and device for data query
  • Method and device for data query

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.

[0035] It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

[0036] figure 1 An exemplary system architecture 100 is shown to which embodiments of the method for querying data or the apparatus for querying data of the present application can be applied.

[0037] Such as figure 1 As shown, the system architecture 100 may include term...

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 and a device for data query. One specific embodiment of the method comprises the following steps of receiving a data query request sent by a user terminal, wherein thedata query request comprises a user identifier, a field name and a data version number; determining whether target hierarchical data whose contained data identifier is matched with the user identifier and contained data version number is the same as the data version number contained in the data query request exists in a hierarchical data set, wherein the hierarchical data set is stored in a memory in advance, and each piece of hierarchical data set in the hierarchical data set is provided with the data identifier and the data version number; and in response to determining that the target hierarchical data exists in the hierarchical data set, determining data which is requested by the data query request and is related to a field indicated by the field name based on the target hierarchicaldata, and returning the data to the user terminal. According to the embodiments, the effectiveness of the data query is improved.

Description

technical field [0001] The present application relates to the field of computer technology, specifically to the field of Internet technology, and in particular to a method and device for querying data. Background technique [0002] Hierarchical data is data that includes multiple hierarchies (such as parent hierarchies, child hierarchies) and has a clear hierarchical structure. Hierarchical data may, for example, be data with a tree-like storage structure. For example, hierarchical data containing three levels for storing item information, the first level of the hierarchical data may include the category identification of the first-level category to which the item belongs, and the second level may include the category identification of each sub-category of the first-level category, The third level may include item identifiers of items belonging to each subcategory, and the third level is the last level of the hierarchical data. Here, the first level may be called the paren...

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
Inventor 刘辉聪王希斌刘泽胤
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) 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