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: Optimizer problem?

Re: Optimizer problem?

From: Thomas Kyte <tkyte_at_us.oracle.com>
Date: 1997/10/09
Message-ID: <343f2df8.21837901@newshost>#1/1

On Thu, 09 Oct 1997 19:37:46 +0200, Norbert Ferstl <ferstl_at_netway.at> wrote:

>Phil Tsao wrote:
>>
>> Hi,
>>
>> I was wondering if any one has experienced the same problem.
>> I have a loop to add 10,000 rows to a table one by one then another loop
>>
>> to delete each row one by one. After doing so a few times, the
>> "select count(*) from table" starts doing table scan ( and physical
>> read)

[snip]

>> philt_at_technologist.com
>
>
>
>If you use an index as discribed in other reply(s)
>it's OK.
>BUT your first full table scan WILL be time-consumting because of the
>delayed block-ceanout, witch means to mark the emptied block
>as empty in the second access transaction.
>So assume to make a full-table scan after a large delete.
>

Note: As of Oracle Server release 7.3, performing a SELECT COUNT (*) no longer does a block cleanout.

>

Thomas Kyte
tkyte_at_us.oracle.com
Oracle Government
Bethesda MD

http://govt.us.oracle.com/ -- downloadable utilities



Opinions are mine and do not necessarily reflect those of Oracle Corporation Received on Thu Oct 09 1997 - 00:00:00 CDT

Original text of this message

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