Patent ID: 9600517
Date: 2017-03-21
CPC Classifications: G06F

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, the feasibility determined based on one or more run-time statistics for at least one buffer indicating a threshold number of full row buffers; based on the indication, converting from a non-bulk insert mode to the BULK insert mode by allocating resources including one or more extents, each extent comprising a block of pages, and one or more threads for index updating; and based on 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 within a block of pages of an extent of the one or more extents; and based on a determination that the allocated row buffer is full, inserting rows within the allocated row buffer into the target table in the BULK insert mode and updating at least one index in parallel with the inserting, the updating using at least one thread of the one or more threads.