SQL statement processing method and device
A processing method and statement technology, applied in the field of data processing, can solve the problems of database cluster performance bottleneck, affecting the stability of database cluster production and operation, network traffic congestion, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0058] The method embodiment provided in Embodiment 1 of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking running on a mobile terminal as an example, figure 1 It is a block diagram of the hardware structure of the mobile terminal of the SQL statement processing method of the embodiment of the present invention, such as figure 1 As shown, the mobile terminal may include one or more ( figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the above-mentioned mobile terminal also A transmission device 106 for communication functions as well as input and output devices 108 may be included. Those of ordinary skill in the art can understand that, figure 1 The shown structure is only for illustration, and does not limit the str...
Embodiment 2
[0091] According to another embodiment of the present invention, a SQL statement processing device is also provided, Figure 4 is a block diagram of the SQL statement processing device according to the present embodiment, such as Figure 4 shown, including:
[0092] Parsing module 42, used for parsing the semantics of the SQL statement to obtain multiple clauses;
[0093] The first construction module 44 is used to construct the clause dependencies of the multiple clauses in a directed acyclic graph manner;
[0094] The second construction module 46 is configured to construct the logical execution plan of the plurality of clauses based on the clause dependencies;
[0095] The execution module 48 is configured to execute the logic execution plan through the local data node to obtain an execution result.
[0096] Optionally, the second building block 46 includes:
[0097] A grouping submodule, configured to group the tables involved in the multiple clauses based on the claus...
Embodiment 3
[0113] Embodiments of the present invention also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is set to execute the steps in any one of the above method embodiments when running.
[0114] Optionally, in this embodiment, the above-mentioned storage medium may be configured to store a computer program for performing the following steps:
[0115] S11, analyzing the semantics of the SQL statement to obtain multiple clauses;
[0116] S12. Construct the clause dependencies of the multiple clauses in a directed acyclic graph manner;
[0117] S13. Construct a logical execution plan of the multiple clauses based on the clause dependencies;
[0118] S14. Execute the logic execution plan through the local data node to obtain an execution result.
[0119] Optionally, in this embodiment, the above-mentioned storage medium may include but not limited to: U disk, read-only memory (Read-Only Memory, ROM for short), random ac...
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