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

Home -> Community -> Usenet -> c.d.o.server -> Re: Procedure Performance Suggestion

Re: Procedure Performance Suggestion

From: damorgan <damorgan_at_exesolutions.com>
Date: Fri, 22 Mar 2002 17:26:55 GMT
Message-ID: <3C9B6962.8937F2C5@exesolutions.com>


Never drop if truncate will work. Or do you have no constraints, no indexes, no triggers, and no referencing objects that will become invalid?

But for 1000 rows, if you are having performance problems, there is something else very very wrong.

Daniel Morgan

R Chin wrote:

> I have a procedure that builds the SELECT and uses Native Dyn. SQL (execute
> immediate) to populate a table for report....
> 1) if the table NOT exist, do CTAS...(nologging)
> 2) if it exists, TRUNCATE it, and do INSERT...SELECT
> (table size about < 1000 rows)
>
> To get any performance gain....should I just DROP the table
> and do CTAS as opposed to #2 ??
>
> Thanks !
> Rob
Received on Fri Mar 22 2002 - 11:26:55 CST

Original text of this message

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