What's the fastest way to select the number of rows in a table?  If I
use count(*) with no whereclause, it uses a seq_scan and takes 4 secs
(122k rows).  With a where clause, it uses an index and returns in < 1
sec.  Selecting count(requestnumber), which is an indexed column, with
no where clause again takes 4 secs.  This latter version, I thought,
would use the index.  The values of requestnumber are very distributed.

Thanks


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
message can get through to the mailing list cleanly

Reply via email to