Secondary index creation method and device for horizontal partition table, equipment and storage medium
A secondary index and horizontal partitioning technology, applied in the database field, can solve problems such as reducing parallel efficiency, high coupling between producers and consumers, and not really improving index data filling efficiency, so as to improve efficiency and user experience.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0026] figure 1 It is a flow chart of a method for creating a secondary index of a horizontal partition table provided by Embodiment 1 of the present invention. This embodiment is applicable to situations where the efficiency of creating a secondary index is low. The level index creation device can be used to implement the device, which can be implemented in hardware and / or software, and can usually be configured in computer equipment. Specifically include the following steps:
[0027] S110. After receiving the secondary index creation instruction, set the index state of the secondary index of the partition root table in the horizontal partition table corresponding to the instruction to an invalid state.
[0028] Wherein, the secondary index creation instruction can be understood as an instruction generated when the secondary index of the horizontal partition table is created.
[0029] In this embodiment, the horizontal partition table can be understood as splitting a table ...
Embodiment 2
[0053] figure 2 It is a flow chart of a method for creating a secondary index of a horizontal partition table provided by Embodiment 2 of the present invention. This embodiment further refines the above-mentioned embodiments on the basis of each. Specifically, the following steps may be included:
[0054] S210. After receiving the secondary index creation instruction, set the index state of the secondary index of the partition root table in the horizontal partition table corresponding to the instruction to an invalid state.
[0055] S220. Obtain the number of tasks specified by the user in advance; or,
[0056] Determine the number of asynchronous subtasks according to the database operating environment, the number of leaf-level partition sub-tables in the horizontal partition table, and the data volume of each leaf-level partition sub-table.
[0057] Wherein, the database operating environment may include relevant information such as the operating system where the database...
Embodiment 3
[0123] Figure 4 It is a schematic structural diagram of a device for creating a secondary index of a horizontal partition table provided in Embodiment 3 of the present invention. The device for creating a secondary index of a horizontal partition table provided in this embodiment can be implemented by software and / or hardware. It can be configured in a server to implement a method for creating a secondary index of a horizontally partitioned table in an embodiment of the present invention. like Figure 4 As shown, the device may specifically include: a state setting module 410 , a data filling module 420 and an index obtaining module 430 .
[0124] Wherein, the state setting module 410 is configured to set the index state of the secondary index of the partition root table in the horizontal partition table corresponding to the instruction to an invalid state after receiving the secondary index creation instruction.
[0125] The data filling module 420 is configured to fill th...
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