Data association query method and system in RocksDB-based key-value storage mode
A technology of data association and storage mode, applied in the field of operator optimization, to avoid overhead, improve computing efficiency, and improve efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0054] as attached image 3 As shown, the data association query method based on the key-value storage mode of RocksDB of the present invention, the method is to store each line of data through the channel of the go language under the key-value storage system and then read it piece by piece. Realize block reading, that is, process data in units of blocks. After receiving the data block, distribute the data to different Join Workers for parallel computing to improve the computing performance of the Hash Join operator; the details are as follows:
[0055] S1. Read data block by block instead of line by line; the details are as follows:
[0056] S101. Store the read data into the channel without performing calculations;
[0057] S102. When the amount of data in the channel satisfies the shipping conditions, divide the channel into blocks for calculation.
[0058] S2. Each module communicates through the channel cache, so that each module is executed asynchronously, and the exec...
Embodiment 2
[0077] The present invention is based on the data correlation query system under the key-value storage mode of RocksDB, and this system comprises,
[0078] The main thread is used to read all the small table data and construct a hash table; then start the Table Reader and JoinWorker to start background work, and finally return the Join result calculated by the Join Worker;
[0079] Table Reader thread, used to read the data of the Outer table and distribute it to each Join Worker;
[0080] Multiple Join Worker operators are used to look up the data in the hash table, Join matching Inner and Outer tables, and pass the results to the Main Thread for parallel computing.
Embodiment 3
[0082] The embodiment of the present invention also provides an electronic device, including: a memory and a processor;
[0083] Wherein, the memory stores computer-executable instructions;
[0084] The one processor executes the computer-executed instructions stored in the memory, so that the one processor executes the data association query method in the key-value storage mode of RocksDB as in Embodiment 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