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
Which component is responsible for db2 startup and shutdown?
Define db2 and its databases?
What is node in db2?
What is db2 bind process?
What is a page in db2?
What is a db2 package?
What is ibm db2 used for?
What is the role of data manager in the db2 database?
Explain in detail about buffer manager and its functionalities?
How does a cursor work?
Suppose pgm A calling Pgm B .Pgm B has some Db2 program. at the time of compilation should plan and package will be created for both A and B or only B? What is the concept?
What is the syntax for FETCH in DB2 ?
What are iseries servers?
what is diffrence b/w file-aid tool and file-aid utility???
What is isolation level in db2?