Data query method and device

A data query and data technology, applied in the field of data query, can solve the problems of low cache data hit rate, poor anti-risk ability, high timeliness, etc., to deal with attacks from malicious users, overcome low cache hit rate, and improve cache hit rate effect

Active Publication Date: 2019-04-26
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF10 Cites 35 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] Usually, in the application scenario of online data query, the data query information needs to have relatively high timeliness, and the cache time should not be too long. In daily life, under the design of the existing technical scheme, the hit rate of cached data is low and large Batch query requests will directly request the upstream query service, especially during the peak period of query and interest conversion, a large number of HTTP links will be established, which will greatly increase the burden on the business system, resulting in the inability to obtain data for some query requests, affecting the ease of use of the business system sex;
[0008] 2) Using a synchronization mecha...

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
  • Data query method and device
  • Data query method and device
  • Data query method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038]Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0039] As mentioned above, for an online data query system with a large number of visits, its core business scenarios, such as online query of remaining train tickets, online query of air ticket remaining, online query of hotel room supply, etc., require far more visits than In other links, especially during the peak period of use, its performance and experience directly af...

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 provides a data query method and a data query device, which can dynamically analyze hot queries, improve the cache hit rate and reduce the delay of query response by adopting a mode of coexistence of a first-level cache and a second-level cache, and can improve the accuracy of cached data by utilizing a data updating form of combination of an active cache and a passive cache. The method comprises the following steps: querying data from a first-level cache according to a received query request, and returning the data if the data is queried; Otherwise, continuing to call the external query service interface to perform data query; if the query is not overtime, returning the queried data; updating the inquired data into a first-level cache and a second-level cache; and if the query is overtime, querying data from a second-level cache and returning the data, the first-level cache having a first preset data expiration deletion time, the second-level cache having a second presetdata expiration deletion time, and the first preset data expiration deletion time being less than the second preset data expiration deletion time.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a data query method and device. Background technique [0002] With the continuous development of computer technology, more and more people choose to access business systems online to obtain the information they need. For an online data query system with a large number of accesses, its core business scenarios, such as online query of remaining train tickets, online query of remaining air tickets, online query of hotel room supply, etc., usually have the following commonalities: [0003] 1. The query request is much larger than the write request; 2. It is necessary to call the interface service of the external query system; 3. The processing capacity of the external query system is limited; 4. The input parameters of the query change greatly (for example, in the scene of querying remaining train tickets, the The site of the query is not fixed and changes a lot). [0004] For th...

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
IPC IPC(8): G06F16/2453G06F16/2455
Inventor 历娜
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH 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