SET COMMIT
Syntax
Set COMMIT level;
Description
Sets the commit level for inserting rows and not for DDL statements. If the level is set to 0, commits are only done when all rows for a record are inserted. Due to the expense of recompiling and rebinding after a commit, the default is 0.
Note:
There are performance implications associated with the SET COMMIT command. For a large database with millions of rows, there is significant degradation in performance. However, for a small database, performance slows down somewhat. Run the SET COMMIT command only as necessary.
Parameters
The default is to commit at the end of the record.
Example
The following examples demonstrate how to use SET COMMIT in conjunction with SWAP BASE_LANGUAGE:
Set COMMIT 2;
SWAP BASE_LANGUAGE FRA;
or
Set COMMIT 2;
SET BASE_LANGUAGE ENG;
SWAP_BASE_LANGUAGE MY_RECORD;