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 -> Truncating table gives better performance

Truncating table gives better performance

From: Anamika <anamika_at_home.com>
Date: Tue, 30 Apr 2002 19:35:21 GMT
Message-ID: <Xns92009E9581677anamika@207.181.101.12>


I have a table which does not have indexes setup, but is used as a temporary table by some sql procs. The table itself does not grow beyond a thousand rows.
Recently, noticed that one sql proc was taking too much time to compute and doing a tkprof showed that it spent time using this table. Just for kicks, did a 'delete' of all rows on the table, but no improvement in time taken.
But a 'truncate' on the table showed tremendrous improvement in time taken ?
Looking to find the root cause of this behaviour. Appreciate feedback.

TIA,
-A Received on Tue Apr 30 2002 - 14:35:21 CDT

Original text of this message

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