Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> When to use bulk bind?

When to use bulk bind?

From: <rgaffuri_at_cox.net>
Date: Thu, 01 May 2003 10:56:53 -0800
Message-ID: <F001.0058DA0B.20030501105653@fatcity.com>


We have a batch process that does a long series of updates, inserts, and deletes. Right now we are using a script to execute sql.

When is it appropriate to move this to PL/SQL and use array processing? couple of things I thought of...

  1. We have one large table that has a column with 5-6 distinct values. We are often doing

select stuff
from big_table
where column = 'BLAH'

Would it be a good idea to bulk collect the rowids or even just select the entire row into a pl/sql table? and essentially break the table up into 5 smaller tables?

then do a forall statement to do my update?

In general when should you move from update, insert,delete statements with sub-queries to array processing? anyone have any rules of thumb?

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: <rgaffuri_at_cox.net
  INET: rgaffuri_at_cox.net

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 Thu May 01 2003 - 13:56:53 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US