MySQL Forums
Forum List  »  Performance

Re: Massive SELECTs for a hit counter
Posted by: Peter Zaitsev
Date: December 15, 2004 01:53PM

If select is to scan 2 mil of rows (which is the case if you have only index on user) the answer is yes. and it can get significantly slower than data will not fit in memory any more.

select count(*) from tbl

for MyISAM tables is rare exception and only because the counter is maintained for you by MySQL.

Options: ReplyQuote


Subject
Views
Written By
Posted
3422
December 13, 2004 04:18PM
2399
December 14, 2004 11:45AM
2181
December 14, 2004 08:06PM
2253
December 14, 2004 12:55PM
2126
December 14, 2004 11:35PM
3623
December 16, 2004 01:45AM
2368
December 15, 2004 01:19PM
2322
December 15, 2004 01:39PM
Re: Massive SELECTs for a hit counter
2226
December 15, 2004 01:53PM


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.