Re: Optimising PL/SQL Script. Takes 2 days to run.
Date: 22 Jan 2003 05:21:32 -0800
Message-ID: <7f966bc5.0301220521.104eb3e4_at_posting.google.com>
> start_date := to_date('23012003','ddmmyyyy');
What difference does this make? Is it purely good form to do it like this or is there a speed boost?
> Are indexes created on table FORECAST? if yes, you
> should drop them before inserting so many rows.
[Quoted] Since I posted last, I did what you said and changed the date, removed the loop and used 7 inserts and I also disabled all constraints and indexes on the table. As a result, things seem to run about 40% faster. Wow! Hopefully since the data is being inserted in a good order the rebuilding of the index will be fast.
Thanks for your help!
[Quoted] [Quoted] On a sidenote -- if it errors during the insert, is it possible to tell Oracle to re-run picking up where it left off?
David. Received on Wed Jan 22 2003 - 14:21:32 CET