MySQL Forums
Forum List  »  Performance

Re: Please help with slow easy query
Posted by: Rick James
Date: April 30, 2009 10:54PM

"key_buffer = 384M"
You are missing my point. With only 1GB total, 348MB is starving other uses of RAM. You should lower it. Hmmmm... I see only 4.2MB of indexes in the tables, so probably the key buffer never grew to 384MB.

http://dev.mysql.com/doc/refman/5.0/en/memory-storage-engine.html
discusses the limitations of MEMORY tables. Somewhere else it discusses how tmp tables won't use MEMORY if any of the restrictions are violated. This led to some of the speedup in the new formulation. VARCHAR (any size) is ok for MEMORY; TEXT (any size) is not.

"reducing result's record count" -- that would be application-dependent.

I'm glad you got the speedup. Sorry I could not make it even faster, but I think that is the best you are going to get with 7K rows.

Options: ReplyQuote


Subject
Views
Written By
Posted
4999
April 21, 2009 11:58PM
2311
April 22, 2009 02:10AM
2303
April 22, 2009 09:37AM
2260
April 23, 2009 12:16AM
2158
April 23, 2009 02:20AM
2137
April 25, 2009 04:34PM
2150
April 27, 2009 09:47PM
2171
April 29, 2009 09:44AM
Re: Please help with slow easy query
2139
April 30, 2009 10:54PM


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.