Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: frequent commit, example ??? HELP
Hi Andrea,
Don't do it! Adding commits makes the code more complex, much less efficient and risks
violating transactional
integrity. See http://www.ixora.com.au/newsletter/2001_09.htm#commits for a detailed
explanation of the problems.
@ Regards,
@ Steve Adams
@ http://www.ixora.com.au/ - For DBAs
@ http://www.christianity.net.au/ - For all
-----Original Message-----
Sent: Friday, 16 November 2001 6:00
To: Multiple recipients of list ORACLE-L
Hi all,
Thank you all those for responding to the frequent commit question. So members suggested using count, and loop. May I have real example. (OK, I'm bad at pl/sql). Site table has 2 million rows, how to so a commit, let's say 5000 rows. Site_id is unique in site table. How does the counter fit in the following update sql?
update site a set a.site_code =
(select c.area_code from site_location b, area c where a.site_id = b.site_id andc.area_id = b.area_id);
I put a counter is a sample code, and update runs 10 times! then commit, then runs another 10 times! then commit .... I must miss something. Please give me as mush detail as you can. Thank you so much!
Andrea
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Andrea Oracle INET: andreaoracle_at_yahoo.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Steve Adams INET: steve.adams_at_ixora.com.au Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Sun Nov 18 2001 - 16:29:31 CST
![]() |
![]() |