MySQL Forums
Forum List  »  InnoDB

Re: COUNT(*) on innodb
Posted by: Jacky Shu
Date: November 24, 2005 12:55PM

Thanks Jay.
The performance of count(*) on innodb table is quite disappointing.
I used a small box to test a table contains around 10M rows,
it took 12 minutes!
I also tried SHOW TABLE STATUS, the row number is nothing close to accurate.
As the solution using a counter table, that means recoding in each INSERT/DELETE for each table. :-(
I'm evaluating InnoDB storage engine because of lacking for referential integrity, it is too hard to keep data clean.
Also in the replicatoin scenario, if a job on master is killed, there is no way to know how much rows are affected in the previous job. The log on slave can only tell me the job is killed.

Jacky Shu

OCPDBA, MCDBA

Options: ReplyQuote


Subject
Views
Written By
Posted
12443
November 24, 2005 09:15AM
4773
November 24, 2005 09:46AM
4486
November 24, 2005 11:53AM
4177
November 24, 2005 12:16PM
4130
November 24, 2005 12:39PM
Re: COUNT(*) on innodb
3772
November 24, 2005 12:55PM
4274
November 24, 2005 01:03PM
3279
November 24, 2005 01:11PM
3229
November 24, 2005 01:32PM
2972
November 24, 2005 02:07PM
3510
November 24, 2005 08:00PM
2977
November 24, 2005 08:38PM
2827
November 25, 2005 05:15PM


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.