-- "Nguyen, David M" <[EMAIL PROTECTED]>

> Hi all,
>
> I write a script to update 10,000 records in my database and noticed it
> took more than an hour to update 10,000 records.  The script just
> includes 10,000 SQL update commands as shown below.  Is the time too long
> to update 10,000 records?  Is it a way to improve the update task to run
> faster.  Please advise.
>
> *** A portion of my update script is shown below:
>
> update dbimpl.npa_nxx set ported_flag = 1 where nxx_id = 206 and npa_id =
> 201 and lata_id = 224;
>
> update dbimpl.npa_nxx set ported_flag = 1 where nxx_id = 207 and npa_id =
> 201 and lata_id = 224;

If the table is 15TB it might actually be rather fast;
might also be really good if the database were being
restored at the time. Lacking any other info there is
no way to tell.

Have you tried generating an explain plan for one of them?
Does the seem reasonable to you?

How about using a language that supports place holders
(e.g., DBI) or turning on cursor sharing so that the
optimizer isn't called for each iteration?

--
Steven Lembark                               2930 W. Palmer
Workhorse Computing                       Chicago, IL 60647
                                            +1 800 762 1582
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Steven Lembark
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to