Method for attaching partition online to range partitioned table
Abstract
Method for attaching one or more tables online to a range partitioned table, includes: starting a child transaction; obtaining an exclusive lock on a source table; obtaining an intent exclusive lock on a target table; soft invalidating queries on the target table where compiled form of queries are cached for reuse; attaching the source table(s) to the target table as a new partition(s) of the target table; modifying indices and table structure of the target table to reflect the attaching of the new partition; committing the child transaction; and releasing the exclusive lock and the intent exclusive lock, where concurrently running queries over the target table continue to run without considering the partition until the intent exclusive lock and the exclusive lock are released. Queries on the target table only consider existing partitions when the attaching is in progress. The new partition is available once the attach operation is complete.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 24 · Forward citations: 8.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for attaching a partition online to a range partitioned table, comprising: beginning a child transaction; obtaining an exclusive lock on one or more source tables; obtaining an intent exclusive lock on a target table; acquiring a mutex controlling a dictionary partition list of the target table; setting an online alter flag indicating that an attach operation is in progress; attaching the source table to the target table as the new partition of the target table; updating a target table catalog to reflect the table structure of the modified target table; modifying indices for the targe
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (8 of 8 total)
References Cited — Backward Prior Art (24)
Non-Patent Literature (4)
- Beck, K., "Viper Preview: Range Partitioning Fundamentals"; IDUG DB2 LUW, IBM Tampa Convention Center; May 11, 2006; all pages.
- IBM et al, "Method to Decide on the Best Partitioning Columns and Best Range Values for Creating the Range Partition Tables"; IPCOM000200914D; Oct. 29, 2010; all pages.
- IBM et al., "Automatic Table Partitioning Roll-In"; IPCOM000147709D; Mar. 22, 2007; all pages.
- Song, J. et al., "NPA: Increased Partitioning Approach for Massive Data in Real-Time Data Warehouse"; ITCS 2nd International Conference; Aug. 11-13, 2010; pp. 1-6.