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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


