| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: Possible Tune-up?
On 26 Jul 2006 21:19:18 -0700, "Adley" <adley194_at_gmail.com> wrote:
>Is there something wrong with the PL/SQL script above?
Sure there is.You are executing procedurally what should have been done non-procedurally (ie one update statemnt with a subquery). As you have torn things apart, you force Oracle to fetch one record at a time. This is slow. Also you force Oracle inside the loop from the PL/SQL engine to the SQL engine. This is called a context switch and is also costly.
-- Sybrand Bakker, Senior Oracle DBAReceived on Thu Jul 27 2006 - 00:18:24 CDT
![]() |
![]() |