Re: Large table query with cpu throttling
From: Peter Teoh <htmldeveloper_at_gmail.com>
Date: Tue, 19 Feb 2008 15:28:10 +0800
Message-ID: <804dabb00802182328u315a1dfm11c1a7e74091ae8d@mail.gmail.com>
Date: Tue, 19 Feb 2008 15:28:10 +0800
Message-ID: <804dabb00802182328u315a1dfm11c1a7e74091ae8d@mail.gmail.com>
Ooopss....I think I got the problem solved....a simple no-brainer
solution. Thank you very much everyone. (Thank you for the
dbms_lock.sleep(0.1)) tip, it was useful :-)).
> >
> > loop
> > bulk collect from your_table to arrary;
> > exit when no rows found exit loop;
> > do something with your fetched array;
> > sleep for a short time; (dbms_lock.sleep(0.1));
> > end loop;
>
-- http://www.freelists.org/webpage/oracle-lReceived on Tue Feb 19 2008 - 01:28:10 CST