Hi,
I have a partitioned table in Oracle with no indexes.
select count(*) from <tabname> partition (name)
takes around 10 mins to count 70,000 rows. It's doing a full scan of the partition but this stills seems a long time, even if the data isn't already cached.
Would an index speed up a select count(*) ?. I was under the impression that you'd need to use select count(col name) to get it to use the index.
ta,
M
I have a partitioned table in Oracle with no indexes.
select count(*) from <tabname> partition (name)
takes around 10 mins to count 70,000 rows. It's doing a full scan of the partition but this stills seems a long time, even if the data isn't already cached.
Would an index speed up a select count(*) ?. I was under the impression that you'd need to use select count(col name) to get it to use the index.
ta,
M