MySQL Forums
Forum List  »  InnoDB

Re: select count(*) over 20 seconds for 200k rows?? slow!
Posted by: Bob Bankay
Date: May 22, 2008 03:05PM

Try the following:

select count(created_at) from pits;

It should be a lot faster, since it should count from the index.

Bob Bankay
UC Berkeley,
SSl, SETI Project

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: select count(*) over 20 seconds for 200k rows?? slow!
1930
May 22, 2008 03:05PM


Sorry, you can't reply to this topic. It has been closed.

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.