Techniques for efficient dataloads into partitioned tables
AssigneeOracle International Corporation
InventorsPrakash Menon, Swati Iyengar
Life of this patent
Estimating the term…
Abstract
Techniques for efficiently loading data into a partition of a partitioned table of a database are provided. Data is stored in a swap table and the high water mark of the swap table has been reset prior to storing the data. The swap table is swapped with the partition. After the swap, the swap table becomes the partition of the partitioned table and the partition of the partitioned table becomes the swap table, and the swap table is truncated to reset the high water mark of the swap table.
Claims20
A method for loading data comprising:
- collecting data from a first set of one or more data sources;
- storing the data from the first set of one or more data sources in a swap table, wherein prior to storing the data from the first set of one or more data sources the swap table contains no data and the high water mark of the swap table has been reset to reflect that the swap table contains no data;
- swapping the swap table with a first partition of a partitioned table, wherein swapping the swap table with the first partition results in the swap table becoming the first partition of the partitioned table and the first partition prior to the swap becoming the swap table after the swap;
- and
- truncating, after the swapping, the swap table to reset the high water mark for the swap table.
A system comprising:
- a partitioned table comprising one or more data partitions, wherein each data partition in the one or more data partitions is used to store data collected from a set of one or more data sources;
- a first data collector configured to:
- collect data from a first set of one or more data sources;
- and
- insert the data from the first set of one or more data sources to a swap table, wherein prior to storing the data from the first set of one or more data sources the swap table contains no data and the high water mark of the swap table has been reset to reflect that the swap table contains no data;
- and
- a scheduler configured to execute tasks at predetermined intervals, the scheduler configured to:
- swap the swap table with a first partition of the partitioned table, wherein swapping the swap table with the first partition results in the swap table becoming the first partition of the partitioned table and the first partition prior to the swap becoming the swap table after the swap;
- and
- truncate, after the swapping, the swap table to reset the high water mark for the swap table.
A computer readable medium storing a plurality of instructions for controlling a data processor to perform one or more tasks, the plurality instructions comprising:
- an instruction that causes the data processor to collect data from a first set of one or more data sources;
- an instruction that causes the data processor to store the data from the first set of one or more data sources in a swap table, wherein prior to storing the data from the first set of one or more data sources the swap table contains no data and the high water mark of the swap table has been reset to reflect that the swap table contains no data;
- an instruction that causes the data processor to swap the swap table with a first partition of a partitioned table, wherein swapping the swap table with the first partition results in the swap table becoming the first partition of the partitioned table and the first partition prior to the swap becoming the swap table after the swap;
- and
- an instruction that causes the data processor to truncate, after the swapping, the swap table to reset the high water mark for the swap table.
Dependencies are inferred from the claim text.