Query method for distributed deployed heterogeneous database
A data query and database technology, applied in the field of database query, can solve problems such as inability to cope with high load and high concurrency, slow efficiency, system crash, etc., to enhance stability and query efficiency, improve return speed, and solve high load and high Effects of concurrency problems
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0043] figure 1 It is a flowchart of a query method for a heterogeneous database distributed in an embodiment of the present invention; as figure 1 As shown, the method includes:
[0044] S1: Receive the database query request of the application;
[0045] The query request includes query information for obtaining query results from the heterogeneous database;
[0046] S2: Determine the query type of this database query according to the query information;
[0047] S3: Determine whether the query request is an initial request according to the query information;
[0048] Specifically, the database query request may be a request sent by the user through the application client to query data information, and the query information included may include at least one of the following or a combination thereof: keywords of the data to be queried, Question statement, query type (such as sorted query and non-sorted query), and initial request identification. Therefore, it can be judged...
Embodiment 2
[0055] On the basis of the first embodiment, the database query method provided in this embodiment may specifically include:
[0056] S6: Store the remaining query result sets in the result set into the cache.
[0057] On this basis, in this embodiment, after step S3 always judges whether the query request is an initial request based on the query information, it may specifically include:
[0058] S32 If the query request is not an initial request, obtain and send a preset number of query results from the cache according to the query type to the application program, and store the remaining query results in the cache.
[0059] Specifically, if the query request is not an initial request, the query request is determined as a "page turning" request, so as to obtain a preset number of query results from the cache according to the determined query type, and send them to the application program, At the same time, the remaining query results are stored in the cache.
Embodiment 3
[0061] In this embodiment, on the basis of Embodiment 1 and Embodiment 2, in step S5, according to the query type, a preset number of query results are obtained from the result set and sent to the application program, which may also specifically include:
[0062] S51: If the query type is a sorting query, sort all the query results in the result set according to preset rules, so as to obtain the preset number of query results from the result set according to the sorting results to the application program.
[0063] For example, the preset rule can be set as time order, similarity, location information and so on. Based on this feature, the data query results can better meet user requirements and improve the accuracy of data query.
[0064] Further, in step S51, after sorting all query results in the result set according to preset rules, so as to obtain the preset number of query results from the result set according to the sorting results to the application program, it may also...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com