MySQL Forums
Forum List  »  Performance

Re: Please help with slow easy query
Posted by: Ilya Cheburaev
Date: May 01, 2009 11:30AM

Rick James Wrote:
-------------------------------------------------------
> "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-stor
> age-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.
>
Ok =)
> "reducing result's record count" -- that would be
> application-dependent.
>
Need just an idea. Just need to get 30 of all results but how to do it without retriving all data?
Not sure about limit. And the bottleneck is tmp table but not sending result...
> 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.
Thank's!

Options: ReplyQuote


Subject
Views
Written By
Posted
4989
April 21, 2009 11:58PM
2309
April 22, 2009 02:10AM
2303
April 22, 2009 09:37AM
2260
April 23, 2009 12:16AM
2157
April 23, 2009 02:20AM
2134
April 25, 2009 04:34PM
2147
April 27, 2009 09:47PM
2170
April 29, 2009 09:44AM
2137
April 30, 2009 10:54PM
Re: Please help with slow easy query
2217
May 01, 2009 11:30AM


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.