MySQL Forums
Forum List  »  Performance

Re: Slow query performance
Posted by: Aleksey Kishkin
Date: October 13, 2004 10:48PM

Matt,

count(*) (you use in explain) and count(BLOCKGROUP_ID) are pretty different.
count(*) - counts all records.
count(BLOCKGROUP_ID) - counts all records with not null BLOCKGROUP_ID
so, 'explains' for them can differ.

could you please to provide explain for
SELECT COUNT(BLOCKGROUP_ID) FROM BLOCKGROUP_DEMOGRAPHIC;
?

Options: ReplyQuote


Subject
Views
Written By
Posted
5549
October 13, 2004 05:23PM
2910
October 13, 2004 10:01PM
Re: Slow query performance
2956
October 13, 2004 10:48PM
2829
October 14, 2004 08:50AM
2983
October 14, 2004 07:08PM
2698
October 14, 2004 11:33PM
2705
October 15, 2004 12:30AM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.