Database query optimization method, medium and equipment
A data query and optimization method technology, applied in the field of database query, can solve problems such as slow query speed, inability to execute operators, and inability to allocate computing resources by operators
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0029] Please refer to figure 1 , figure 1 It is a flow chart of a database query optimization method provided in a specific embodiment of the present invention. The database query optimization method provided in this embodiment includes:
[0030] Step S101: Obtain the data query statement input by the user.
[0031] Step S102: Generate a directed acyclic graph with the operators as nodes according to the dependency relationship of each operator in the data query statement.
[0032] Step S103: According to the directed acyclic graph, determine the operation sequence of the operators and the processor that executes each of the operators.
[0033] Step S104: Query corresponding data according to the determined operation sequence and the processor.
[0034] The present invention is suitable for computers to process SQL query statements concurrently, that is, when the amount of relational data is greater than the number of concurrent computers.
[0035] By obtaining the data q...
no. 2 example
[0056] In the above-mentioned first embodiment, a method for optimizing database query is provided. In combination with the above-mentioned first embodiment, the second embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When executed by the processor, the database query optimization method provided by the above-mentioned first embodiment is realized.
[0057] It can be seen from the above technical solution that the computer-readable storage medium provided by this embodiment can obtain the data query statement input by the user under the control of the processor, and then generate equivalent The directed acyclic graph with the operator as the node, and then according to the directed acyclic graph, the operation sequence of the operator and the corresponding execution processor can be determined. Finally, according to the allocated processor and the operation sequence, the corresponding data. By determining t...
no. 3 example
[0059] In combination with the database query optimization method provided in the first embodiment, the present invention also provides a database query optimization device, including: a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the program, the database query optimization method provided by the first embodiment above is implemented.
[0060] It can be known from the above technical solution that the computer device provided by this embodiment can generate equivalent directed The acyclic graph, and then according to the directed acyclic graph, can determine the operation sequence of the operator and the corresponding execution processor. Finally, the corresponding data can be queried according to the allocated processor and operation sequence. By determining the most reasonable operation sequence and processor, the speed of data query can be improved in the state of data concurrency, thereby opti...
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