Convert Command Into a BULK Load Operation
First Claim
1. A method comprising:
- receiving a database command, the database command associated with a base table with at least one row to copy to a target table;
receiving an indication that use of a BULK insert mode is feasible for the database command;
based on the indication, and determining that an insert mode for the database command has been converted from a non-bulk insert mode to the BULK insert mode;
reading a row from the base table;
building the row read from the base table into an allocated row buffer;
inserting the row into the target table in the BULK insert mode; and
if it is determined that the allocated row buffer is full, updating at least one index in parallel with the inserting.
2 Assignments
0 Petitions
Accused Products
Abstract
A method for inserting rows into a target table can include receiving a database command, the database command associated with a base table with at least one row to copy to a target table; receiving an indication that use of a BULK insert mode is feasible for the database command; based on the indication, and determining that an insert mode for the database command has been converted from a non-bulk insert mode to the BULK insert mode: reading a row from the base table; building the row read from the base table into an allocated row buffer; inserting the row into the target table in the BULK insert mode; and if it is determined that the allocated row buffer is full, updating at least one index in parallel with the inserting.
11 Citations
20 Claims
-
1. A method comprising:
-
receiving a database command, the database command associated with a base table with at least one row to copy to a target table; receiving an indication that use of a BULK insert mode is feasible for the database command; based on the indication, and determining that an insert mode for the database command has been converted from a non-bulk insert mode to the BULK insert mode; reading a row from the base table; building the row read from the base table into an allocated row buffer; inserting the row into the target table in the BULK insert mode; and if it is determined that the allocated row buffer is full, updating at least one index in parallel with the inserting. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A system comprising:
-
a command execution module configured to; initiate execution of a database command, the database command associated with a base table with at least one row to copy to a target table; receive an indication that use of a BULK insert mode is feasible for the database command; a row buffer manager module configured to, based on the indication, and a determination that an insert mode for the database command has been converted from a non-bulk insert mode to the BULK insert mode; read a row from the base table; and build the row read from the base table into an allocated row buffer; and an insert row module configured to, based on the indication; insert the row into the target table in the BULK insert mode; and if a determination is made that the allocated row buffer is full, update at least one index in parallel with the inserting. - View Dependent Claims (10, 11, 12, 13, 14)
-
-
15. 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; receiving an indication that use of a BULK insert mode is feasible for the database command; based on the indication, and determining that an insert mode for the database command has been converted from a non-bulk insert mode to the BULK insert mode; reading a row from the base table; building the row read from the base table into an allocated row buffer; inserting the row into the target table in the BULK insert mode; and if it is determined that the allocated row buffer is full, updating at least one index in parallel with the inserting. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification