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
What is the cobol picture clause of the db2 data types date, time, timestamp?
What is the difference between bind and rebind in db2?
Is db2 relational database?
What is the physical storage length of time data type?
What is explain in db2?
SQLCODE = -199, ERROR: ILLEGAL USE OF KEYWORD CHAR, TOKEN KEY was expected
What is a plan and package in db2?
define clustering index.
Why do we bind in db2?
What is cursor with hold option in db2?
what is a corelated subquerry?
What is the difference between dbm cfg and db cfg file in db2 ?
What is temporal table in db2?
What is the use of value function?
What is the role of the data page in the db2 database?