Semi-join query method, device, server and storage medium
A query method and semi-join technology, applied in the computer field, can solve the problems of query bottleneck, complexity and low query efficiency in the calculation process
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0044] figure 1 It is a flowchart of a semi-join query method provided by Embodiment 1 of the present invention. This embodiment is applicable to the case of querying the left node and right node of a semi-join to obtain query results. The method can be executed by a semi-join query device , the device can be realized by software and / or hardware, and the device is integrated in the server. Specifically, the method includes the following steps:
[0045] S110. Parse the semi-join query statement to generate an execution plan tree corresponding to the connection of the right node, where the semi-join query statement is used to query the left node and the right node of the semi-join.
[0046] The right node of the semi-join can be a data table or a connection. When the right node is a data table, the corresponding semi-join query statement can be in the form of SELECT A.C1,A.C2FROM AWHERE A.C1IN In this form of (SELECTB.D1FROM B), data table A is the left node of the semi-join, a...
Embodiment 2
[0063] Figure 4 The flow chart of a semi-join query method provided by Embodiment 2 of the present invention is embodied on the basis of the above embodiments. Specifically, the method includes the following steps:
[0064] S210. Parse the semi-join query statement to generate an execution plan tree corresponding to the connection of the right node, where the semi-join query statement is used to query the left node and the right node of the semi-join.
[0065] S220. Whether the semi-join mode of the left node and the right node is a preset mode and the query form of the right node is a preset mode, if yes, perform S230, otherwise, perform S270.
[0066] S230. Traverse the execution plan tree, and obtain leaf nodes and connection conditions of internal connections in the execution plan tree.
[0067] During the traversal process, the traversed leaf nodes are stored in the leaf node linked list, and the connection conditions are stored in the connection condition linked list f...
Embodiment 3
[0089] Figure 5A structural diagram of a semi-join query device provided by Embodiment 3 of the present invention. The device can execute the semi-join query method described in any of the above embodiments. Specifically, the device includes:
[0090] The parsing module 310 is used to parse the semi-join query statement to generate an execution plan tree corresponding to the connection of the right node, and the semi-join query statement is used to query the left node and the right node of the semi-join;
[0091] The determining module 320 is configured to: if the semi-join mode between the left node and the right node is a preset mode and the query form of the right node is a preset form, according to the leaf nodes and the inner links in the execution plan tree A connection condition, determining an independent leaf node set and a connection condition corresponding to the independent leaf node set;
[0092] The query module 330 is configured to query the left node and the ...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com