Run-time decision of bulk insert for massive data loading
First Claim
Patent Images
1. A method comprising:
- initiating execution of a database command, the database command associated with a base table with at least one row to copy to a target table, the database command associated with a non-bulk insert mode;
detecting a run-time statistic including a number of row buffers filled with rows from the base table;
making a run-time decision to automatically convert the insert mode from the non-bulk insert mode to a BULK insert mode based on the number of row buffers filled with rows during execution of the database command;
inserting a set of rows into the target table using the BULK insert mode based on the run-time decision;
determining at least one more rows remains in one or more buffers; and
inserting the one or more rows in a non-bulk insert mode and updating one or more indexes corresponding to the one or more rows in a serial mode.
2 Assignments
0 Petitions
Accused Products
Abstract
A method can include initiating execution of a database command, the database command associated with a base table with at least one row to copy to a target table, the database command associated with a non-bulk insert mode; making a run-time decision on whether to automatically convert the insert mode from the non-bulk insert mode to a BULK insert mode based on the number of row buffers filled with rows from the base table during execution of the database command; and inserting at least one row into the target table using an insert mode based on the run-time decision.
-
Citations
20 Claims
-
1. A method comprising:
-
initiating execution of a database command, the database command associated with a base table with at least one row to copy to a target table, the database command associated with a non-bulk insert mode; detecting a run-time statistic including a number of row buffers filled with rows from the base table; making a run-time decision to automatically convert the insert mode from the non-bulk insert mode to a BULK insert mode based on the number of row buffers filled with rows during execution of the database command; inserting a set of rows into the target table using the BULK insert mode based on the run-time decision; determining at least one more rows remains in one or more buffers; and inserting the one or more rows in a non-bulk insert mode and updating one or more indexes corresponding to the one or more rows in a serial mode. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A system comprising:
-
one or more processors; and a non-transitory computer-readable medium comprising instructions, which when executed by at least one processor, configure the one or more processors to perform operations comprising; executing a database command, the database command associated with a base table with at least one row to copy to a target table, the database command associated with a non-bulk insert mode; detecting a run-time statistic including a number of row buffers filled with rows from the base table; making a run-time decision to automatically convert the insert mode from the non-bulk insert mode to a BULK insert mode based on the number of row buffers filled with rows during execution of the database command; inserting a set of rows into the target table using the BULK insert mode based on the run-time decision; determining at least one more rows remains in one or more buffers; and inserting the one or more rows in a non-bulk insert mode and updating one or more indexes corresponding to the one or more rows in a serial mode. - View Dependent Claims (11, 12, 13, 14, 15)
-
-
16. A non-transitory computer-readable medium comprising instructions, which when executed by at least one processor, configure the at least one processor to perform operations comprising:
-
initiating execution of a database command, the database command associated with a base table with at least one row to copy to a target table, the database command associated with a non-bulk insert mode; detecting a run-time statistic including a number of row buffers filled with rows from the base table; making a run-time decision to automatically convert the insert mode from the non-bulk insert mode to a BULK insert mode based on the number of row buffers filled with rows during execution of the database command; inserting a set of rows into the target table using the BULK insert mode based on the run-time decision; determining at least one more rows remains in one or more buffers; and inserting one or more rows in a non-bulk insert mode at one or more indexes corresponding to the one or more rows in a serial mode. - View Dependent Claims (17, 18, 19, 20)
-
Specification