Bug #1844 | Slow performance with select count(*) | ||
---|---|---|---|
Submitted: | 15 Nov 2003 15:14 | Modified: | 17 Nov 2003 7:28 |
Reporter: | Ron Gage | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S3 (Non-critical) |
Version: | 4.1 alpha | OS: | Linux (Slackware 9.0) |
Assigned to: | Dean Ellis | CPU Architecture: | Any |
[15 Nov 2003 15:14]
Ron Gage
[17 Nov 2003 7:28]
Dean Ellis
Using the latest sources from the 4.1.1 BitKeeper tree, I do not notice any significant performance differences for such a query with a 4 million row test. Please try your test using the latest sources if you were not doing so. Thank you
[27 Jan 2004 10:39]
Heikki Tuuri
Hi! Are you sure those 1 million rows were cached in the InnoDB buffer pool? InnoDB scan the whole table when it calculates SELECT COUNT(*) FROM mytable. Regards, Heikki