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
3271
December 13, 2004 04:18PM
2329
December 14, 2004 11:45AM
2119
December 14, 2004 08:06PM
2174
December 14, 2004 12:55PM
2063
December 14, 2004 11:35PM
3424
December 16, 2004 01:45AM
2293
December 15, 2004 01:19PM
2254
December 15, 2004 01:39PM
Re: Massive SELECTs for a hit counter
2167
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.