Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Truncating table gives better performance
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