Subject | When to perform commit ? |
---|---|
Author | bemmel2003 |
Post date | 2003-03-07T11:10:54Z |
Hi,
Would it be wise to fire COMMIT (or COMMITRETAINING) between sql-
statements that influence a lot of records (100.000) or is it better
not to ?
Examples (simplified in order to enhance reading)
Method A.
STARTTRANSACTION
delete from customers
COMMITRETAINING
insert into customers
COMMIT
B.
STARTTRANSACTION
delete from customers
insert into customers
COMMIT
Leon
Would it be wise to fire COMMIT (or COMMITRETAINING) between sql-
statements that influence a lot of records (100.000) or is it better
not to ?
Examples (simplified in order to enhance reading)
Method A.
STARTTRANSACTION
delete from customers
COMMITRETAINING
insert into customers
COMMIT
B.
STARTTRANSACTION
delete from customers
insert into customers
COMMIT
Leon