Data query method and device, equipment and storage medium
A data query and equipment technology, applied in the direction of electrical digital data processing, special data processing applications, digital data information retrieval, etc., can solve problems such as the influence of database performance overhead and the influence of query efficiency on the order of arrangement, so as to reduce the impact of performance overhead and improve The effect of data query efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0035] figure 2 It is a flow chart of a data query method provided by Embodiment 1 of the present invention. This embodiment is applicable to the case of realizing union set operation in a distributed database. The method can be executed by a data query device, and the device can use hardware and / or software, see figure 2 , the embodiment of the present invention may generally include the following steps:
[0036] Step 101, determine at least one sub-execution plan corresponding to the SQL query statement.
[0037] Among them, the SQL query statement is a database query and programming language, which is used to access data and query, update and manage database systems. The sub-execution plan may be a query plan executed by each node in the distributed database, and the sub-execution plans jointly realize the query target of the SQL query statement. Each sub-execution plan can be implemented by a database instance, and multiple database instances can jointly execute a sub...
Embodiment 2
[0047] image 3 It is a flow chart of a data query method provided by Embodiment 2 of the present invention. The embodiment of the present invention is based on the above-mentioned embodiment, and the sub-execution plan is adjusted through the positional relationship of the union set operator in the sub-execution plan. , see image 3 , the data query method of the embodiment of the present invention includes:
[0048] Step 201, receiving an SQL query statement input by a user.
[0049] The embodiment of the present invention is applicable to a distributed database system. A user logs in to a node of the distributed database system. This node may be a specially designated node in the distributed database system, or any node in the distributed database. This node is responsible for receiving user The SQL query statement.
[0050] Step 202, generating an execution plan after performing syntax analysis and semantic analysis on the SQL query statement.
[0051] Specifically, pe...
Embodiment 3
[0079] Figure 8 It is a schematic structural diagram of a data query device provided in Embodiment 3 of the present invention, which can execute the data query method provided in any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method. The device can be implemented by software and / or hardware, and specifically includes: a plan determination module 301 , a plan adjustment module 302 and a data query module 303 .
[0080] The plan determination module 301 is configured to determine at least one sub-execution plan corresponding to the SQL query statement.
[0081] A plan adjustment module 302, configured to adjust each of the sub-execution plans according to the union set operator.
[0082] The data query module 303 is configured to send each of the adjusted sub-execution plans to the execution nodes for execution to realize data query.
[0083] In the embodiment of the present invention, the sub-executi...
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