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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Count(*) not doing a FTS??

RE: Count(*) not doing a FTS??

From: Bobak, Mark <Mark.Bobak_at_il.proquest.com>
Date: Thu, 2 Sep 2004 16:04:39 -0400
Message-ID: <4C9B6FDA0B06FE4DAF5918BBF0AD82CF09660DC2@bosmail00.bos.il.pqe>


I think your instructor needs to go back to school.

A count(*) may or may not do an FTS. It may do a=20 fast full index scan on a primary key index.

There may be other paths available to it. But, reading the segment header is not an option.

Ask him: "If what you say is true, shouldn't it take the same amount of time to do a count(*) on any table, regardless of the size?"

-Mark

-----Original Message-----

From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org]On Behalf Of rjamya Sent: Thursday, September 02, 2004 11:21 AM To: Oracle Discussion List
Subject: Count(*) not doing a FTS??

I am sitting in a class and instructor told us that count(*) reads rowcount from segment header in some (or most?) cases rather than doign the good ol' FTS. He can't remember exact details, so this email ....

is it true? Which version was this introduced? Someone has a reproducible test case?

Thanks in advance
Raj



---

To unsubscribe - =
mailto:oracle-l-request_at_freelists.org&subject=3Dunsubscribe=20 To read recent messages - http://freelists.org/archives/oracle-l/09-2004
---

To unsubscribe - mailto:oracle-l-request_at_freelists.org&subject=unsubscribe To read recent messages - http://freelists.org/archives/oracle-l/09-2004 Received on Thu Sep 02 2004 - 19:33:33 CDT

Original text of this message

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