Data partition loading method and device for association table
A technology of data partitioning and associated tables, applied in database indexing, database updating, digital data processing, etc., can solve the problems of high overhead for repeated data reading, complex partition loading process, high resource consumption, etc., to reduce computing overhead , Reducing resource consumption, the effect of strong versatility
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0061] In order to solve the technical problems of large resource consumption, high overhead of repeated data reading and calculation, and complicated partition loading process when partition loading is traditionally implemented through connection, the present invention provides a data partition loading method based on partition mapping cache . In order to realize the data partition loading of the association table, before the data partition loading, that is, when the partition loader is initialized, it will first construct the tree data structure corresponding to the association table according to the association relationship, and create Node builds an empty partition map cache; where, for each node, the partition loader builds an empty partition map cache for each child node of the node, or an empty partition map cache for each set of associated child nodes of the node .
[0062] The embodiment of the present invention mainly introduces the construction of tree data structu...
Embodiment 2
[0070] On the basis of the tree data structure and the partition map cache built in the above-mentioned embodiment 1, the next step is as follows Image 6 The module division and data flow in the partition loading process are shown, and the table data reading, partition calculation and data distribution are performed in sequence. However, due to the addition of the tree-like association structure and the partition map cache, especially the partition map cache, the method of obtaining data partition values has changed, so in Image 6 A new design has been added to the "Partition Computing" module, and the evolved partition loading module is divided as Figure 8 shown.
[0071] combine Figure 9 , the data partition loading method of the association table provided by the embodiment of the present invention is specifically as follows:
[0072] Step 101, when data partition loading is performed on the master table, calculate the partition value of the data based on the partit...
Embodiment 3
[0085] In the above-mentioned embodiment 2, the data partition loading process of the main table and the supplementary table is introduced respectively. For the associated table model with multiple tables, the tree data structure is usually traversed in the order of depth-first traversal of the tree data structure. Each node in the data partition load, refer to Figure 10 , the specific execution sequence is as follows:
[0086] Step 201, use the master table corresponding to the root node as the current node to perform data partition loading, that is, first perform data partition loading on the master table, and update the partition mapping cache maintained by the master table.
[0087] Step 202, after the data partition loading of the current node is completed, it is judged whether the current node has child nodes. Wherein, the completion of the data partition loading specifically means that the data distribution of each piece of data in the table of the current node has be...
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.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap