Hash join method and device
A connection method and original data technology, applied in the database field, can solve problems such as wasting computing resources
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0082] Embodiment 1 of the present invention discloses a hash connection method, which is applied to a database, and its flow is as follows figure 1 Shown in step S101 to step S105, the specific process includes:
[0083] Step S101, receiving a structured query language SQL statement including a Join operation, parsing and obtaining at least two target data groups to be connected;
[0084] In the process of executing the database query, step S101 is executed, the database parses the received SQL query statement including the Join operation, and obtains at least two target data groups to be connected therefrom. That is to say, if two target data groups to be connected are a pair, at least two target data groups to be connected will appear in the parsing process, that is to say, the target data groups to be connected are parsed in pairs.
[0085] Step S102, divide each target data group into a plurality of data segments of determined data with the vector vector as the quantitat...
Embodiment 2
[0106] Based on the hash connection method disclosed in Embodiment 1 of the present invention, in Embodiment 2 of the present invention, it is mainly aimed at figure 1 The N times of hash grouping mentioned in step S103 shown will be described in detail.
[0107] Based on the preset grouping rules, the process of performing the first hash grouping in the N times of hash grouping for the data segments in each target data group in turn includes:
[0108] Step S1031, calculating the hash value of the original data contained in the current data segment, and using bits to represent the calculated hash value;
[0109] Based on the execution of step S102, the target data group is divided with a vector as the unit of quantity. Taking any data segment in the target data group as an example, when step S1031 is executed, the hash of each original data contained in the same data segment is simultaneously calculated. value, and use bits to represent the hash value obtained by calculating ...
Embodiment 3
[0126] Based on the hash connection method disclosed in Embodiment 1 and Embodiment 2 of the present invention, in Embodiment 2 of the present invention, it is mainly aimed at figure 1 The preset grouping rules mentioned in step S103 shown will be described in detail.
[0127] When the preset grouping rule is the preset number of hash groups N, in the process of performing hash grouping on the data segments in each of the target data groups in turn, stop the target data group until N times of hash grouping is completed to group. Wherein, the value of N is determined by the storage size of the page table buffer TLB, and is a positive integer greater than or equal to 1.
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