Data insertion method and device, equipment and storage medium
A data insertion and data technology, applied in database indexing, structured data retrieval, special data processing applications, etc., can solve problems such as system instability, excessive memory usage, and the number of open file handles, etc., to improve performance, The effect of enhancing the effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0032] figure 1 It is a flowchart of a data insertion method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of importing data into a database. This method can be executed by a data insertion device, which can be implemented by hardware and / or software. Implementation, specifically includes the following steps:
[0033] Step 110, according to the acquired data insertion command, determine the insertion action type of the data insertion command.
[0034] Wherein, when a data insertion task needs to be performed, a corresponding insertion command will be executed, and it can be determined whether it is a dynamic partition insertion or a static partition insertion according to the data insertion command of the database engine. Static partition insertion refers to specifying the target partition when inserting data, and only one partition can be inserted at a time; dynamic partition insertion refers to not specifying the target pa...
Embodiment 2
[0046] figure 2 It is a flowchart of a data insertion method provided by Embodiment 2 of the present invention. The technical solution of this embodiment is further refined on the basis of the above technical solution, and specifically includes the following steps:
[0047] Step 210, according to the acquired data insertion command, determine the insertion action type of the data insertion command.
[0048] Step 220, when the insert action type is dynamic partition insert, determine the partition and bucket information of the target table according to the meta information of the target table.
[0049] Step 230, when the target table is a partitioned and bucketed table, group the data to be inserted according to the hash value of the column corresponding to the bucketed column.
[0050] Among them, after obtaining the partition and bucket information, if the target table is a partition and bucket table, first divide the data of the source table into bucket arrays according to t...
Embodiment 3
[0055] image 3 It is a flowchart of a data insertion method provided by Embodiment 3 of the present invention. The technical solution of this embodiment is further refined on the basis of the above technical solution, and specifically includes the following steps:
[0056] Step 310, according to the acquired data insertion command, determine the insertion action type of the data insertion command.
[0057] Step 320, when the insert action type is dynamic partition insert, determine the partition and bucket information of the target table according to the meta information of the target table.
[0058] Step 330, divide the data to be inserted into at least one group according to the partition and bucket information.
[0059] Step 340, when the target table is a multi-level partition table, sort the data to be inserted in the group according to the order of the partitions of the target table.
[0060] Wherein, if the target table is determined to be a multi-level partition tab...
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