Unlock instant, AI-driven research and patent intelligence for your innovation.

Data query method and device

A data query and data technology, applied in the direction of electronic digital data processing, digital data information retrieval, special data processing applications, etc., can solve problems such as system crashes, service failures, and increased database visits, so as to improve security and increase The effect of visit volume and reducing database pressure

Active Publication Date: 2019-12-13
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Since the data to be queried is not stored in the database, the database will be queried, so malicious elements will use this defect to send a large number of query requests, and each query request is used to query data that does not exist in the database, increasing the number of visits to the database , causing the system to crash and normal services cannot continue

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

[0059]Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

[0060] figure 1 It is an architectural diagram of a data query method shown according to some exemplary embodiments, such as figure 1 As shown, the architecture may include: a first cache space 110 , a second cache space 120 , a database 130 and a log 140 .

[0061] The first cache space 110 is used for storing data identifiers of all data in the database 130 . And when the data iden...

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 data query method and device and belongs to the technical field of data processing and communication. The data query method comprises the following steps: a query request carrying to-be-found first data identification is received; first buffer memory space containing data identification of all data in a database is queried according to the first data identification; when the first data identification is found out in the first buffer memory space, second buffer memory space is queried according to the first data identification; when data corresponding to the first data identification are not found out in the second buffer memory space, the database is queried according to the first data identification. The problems that system crash is caused and normal service cannot be continued due to the facts that the access amount and the pressure of the database are increased through large amount of malicious query of data which are not stored in the database are solved, the pressure of the database is reduced, and the safety of the database is improved.

Description

technical field [0001] The present disclosure relates to the technical field of data processing and communication, and in particular to a data query method and device. Background technique [0002] In the information age, a large amount of data emerges, and the data is classified and stored in different databases to facilitate people to query the data when using it. For example, query a student's grades from the school's teaching information management system; query a certain employee's information from the company's employee information management system. [0003] At present, there are the following methods for querying data, including: cache the data queried within the latest preset time in memory, and when receiving a query request, first query the memory, if the data to be queried is queried from the memory, Then return the queried data; if the desired data is not queried from the memory, then query the database, if the queried data is queried in the database, then retu...

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 Patents(China)
IPC IPC(8): G06F16/2455
CPCG06F16/24539G06F16/24552
Inventor 窦锦帅谭国斌沈建荣
Owner BEIJING XIAOMI MOBILE SOFTWARE CO LTD