what happend with out using Commit,when closing cursor and
program?

Answer Posted / vish

True that we should Explicitly COMMIT the data instead of
depending on auto comit. But COMMITing after every
insert/update of data is not a very good option. Explicit
COMMIT incurs an overhead and makes the processing slow. So
if we are inserting/updating a large number of data into
table, COMMIT after every such update will make the Job
very slow, which in most of the cases, is not preferrable
for production Jobs. In fact, the COMMIT frequency should
be chosen very carefully for every program (please note we
should not have a common COMMIT frequncy for all the
programs as the data being proceesed by different programs
will be different and hence their importance & time to re-
process them also differs) keeping in mind that neither the
performance should be degraded nor the data should be lost.
Suggesstions are Welcome!!

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to resolve deadlock issue

17925


What are foreign keys in db2?

607


What is a db2 cursor?

617


What os does db2 run on?

565


What are the benefits of using the db2 database?

656






How can you quickly find out the # of rows updated after an update statement?

624


Why do we bind in db2?

617


What is the syntax for seeing the columns and data types of a table in the db2 database?

574


What is copy pending and check pending in db2?

570


Following a db2 update statement, what is the quickest way to compute the total number of updated rows?

618


How do we specify index to include or not during bind process.

1670


what is diffrence b/w file-aid tool and file-aid utility???

4168


How would you find out the total number of rows in a db2 table?

570


What is dbrm library?

571


What is sqlca’s maximum length?

664