Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Record row count and execution time into table?
IANAL_VISTA wrote:
> Niall Litchfield <Niall.litchfield_at_dial.pipex.com> wrote in
> news:43400A9E.8030009_at_dial.pipex.com:
>
>
>>www.twisted-nail.com wrote: >> >>>Hi, >>> >>>Counting the rows in the table is performed by full table scan. >> >>Unless it is done via an index. bitmap or normal indexes can, but don't >>necessarily, provide the best access path for a count(*). >>
If the index can't be used to satisfy the query - it won't be used. B*Tree indexes on nullable columns therefore won't be considered (or it is a bug if they are). B*Tree indexes on NOT NULL columns can be considred. Bitmap indexes do indicate null values.
You'll have to wait till later on today for a demo - can't believe I trashed that database on this machine.
-- Niall Litchfield Oracle DBA http://www.niall.litchfield.dial.pipex.comReceived on Mon Oct 03 2005 - 00:38:41 CDT
![]() |
![]() |