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

Data search method and device

A data search and data technology, applied in the field of computer technology and the Internet, can solve problems such as congestion and high pressure on database access, and achieve the effect of improving search efficiency

Active Publication Date: 2019-03-08
北京鸿享技术服务有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] According to the above workflow, in related technologies, when the requested data is not in the memory, it is searched in the database instead. Assuming that the currently found data is popular data and there are multiple concurrent requests at the same time, the multiple requests are processed. All processes will go to the database to find the requested data at the same time. If there are too many concurrent requests, for example, for the current hot news, there may be tens of thousands or even hundreds of thousands or millions of requests at the same time, which will cause excessive pressure on the database access , leading to congestion

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] figure 1 is a schematic flowchart of a data search method according to Embodiment 1 of the present invention, such as figure 1 As shown, the data search method provided in this embodiment mainly includes the following steps:

[0028] Step S102, receiving the data acquisition request, searching for the data requested by the data acquisition request from the cache of the corresponding database;

[0029] In this embodiment, in order to improve the access speed of the database, part of the data in the database is backed up in the cache. When a query request is received, the requested data is first searched from the cache of the corresponding database. If the requested data is found, the found data is returned to the requester of the data, and if the requested data is not found in the cache of the corresponding database, step S104 is executed.

[0030] Step S104, if the requested data is not found in the cache of the corresponding database, obtain the token corresponding t...

Embodiment 2

[0051] figure 2 It is a schematic flow chart of the data caching method according to this embodiment, such as figure 2 As shown, the data caching method provided in this embodiment mainly includes the following steps:

[0052] Step S201, receiving a data acquisition request;

[0053] Step S202, searching for data from the cache of the corresponding database to obtain the data requested by the request;

[0054] Step S203, is the requested data found in the cache of the corresponding database? If yes, then execute step S214, otherwise, execute step S204;

[0055] Step S204, obtaining the token of the requested data from the cache of the corresponding database;

[0056] Step S205, is the token obtained? If yes, then execute step S206, otherwise, execute step S208;

[0057] Step S206, searching the requested data from the database, and returning the found data to the data requester;

[0058] Step S207, cache the found data to the cache of the corresponding database;

[0...

Embodiment 3

[0068] This embodiment provides a data search device, which can be used to implement the data caching method described in any of the foregoing implementation manners.

[0069] image 3 A schematic structural diagram of the data search device provided in this embodiment, such as image 3 As shown, the data cache device mainly includes: a receiving module 310, configured to receive a data acquisition request; a first search module 320, used to search the cache of the corresponding database for the data requested by the data acquisition request; a first acquisition module 330, Used to obtain the token of the requested data from the cache of the corresponding database when the first search module 320 does not find the data requested by the data acquisition request from the cache of the corresponding database; the second search module 340 uses When the first acquiring module 330 acquires the token of the requested data from the cache of the corresponding database, it searches the ...

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

A data searching method and apparatus. The data searching method comprises: receiving a data acquisition request, and searching a buffer of a corresponding database for data requested by the data acquisition request (S102); when the requested data is not found from the buffer of the corresponding database, acquiring a token corresponding to the requested data from the buffer of the corresponding database (S104); and when the token is acquired, assessing the corresponding database to search for the requested data (S106). The problem of over-large pressure of access to a database resulting from too many concurrence requests can be resolved.

Description

technical field [0001] The invention relates to computer technology and the Internet field, in particular to a data search method and device. Background technique [0002] In related technologies, in order to increase the website access speed, some large websites that require frequent database access usually adopt a distributed cache system. [0003] In related technologies, the workflow of the distributed cache system is as follows: first check whether the requested data from the client is in the memory cache, and if so, directly return the requested data without performing any operations on the database; if the requested data is not in the memory In the cache, search the requested data in the database, obtain the data from the database after finding the requested data in the database, return the data obtained from the database to the client, and cache a copy of the data in the memory Medium; every time the database is updated, the data in the memory cache is updated to en...

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/953
CPCG06F16/00
Inventor 郭军梁敬彪曾志海
Owner 北京鸿享技术服务有限公司