SQL Guru's, I need HELP determining size of result set (forquery_cache purposes)

This is a discussion on SQL Guru's, I need HELP determining size of result set (forquery_cache purposes) within the MySQL Database forums, part of the Database Forums category; Hi, could any SQL gurus out there shed some light on how if I had a slow query from the ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008
boole
 
Posts: n/a
Default SQL Guru's, I need HELP determining size of result set (forquery_cache purposes)

Hi, could any SQL gurus out there shed some light on how if I had a
slow query from the slow query log, with all sorts of joins and
complicated SQL wizardry, if I (as the SysAdmin) can determine the
MySQL interpreted size (with respect to the query_cache_limit etc) of
the result set it returns?

I am thinking maybe using the SHOW TABLE STATUS with some kind of
temporary table of the results might help, but I'm not sure how to
syntactically express that.

Thanks alot!

George.
Reply With Quote
  #2 (permalink)  
Old 02-29-2008
Michael Austin
 
Posts: n/a
Default Re: SQL Guru's, I need HELP determining size of result set (forquery_cache purposes)

boole wrote:
> Hi, could any SQL gurus out there shed some light on how if I had a
> slow query from the slow query log, with all sorts of joins and
> complicated SQL wizardry, if I (as the SysAdmin) can determine the
> MySQL interpreted size (with respect to the query_cache_limit etc) of
> the result set it returns?
>
> I am thinking maybe using the SHOW TABLE STATUS with some kind of
> temporary table of the results might help, but I'm not sure how to
> syntactically express that.
>
> Thanks alot!
>
> George.


The correct approach would be to fix whatever is causing the slow query
to start with.. the query_cache will not pin it forever depending on how
often that particular query is executed and how often the underlying
data changes.

Here is a tutorial FROM THE DOCS... (RtM???)
http://dev.mysql.com/tech-resources/...ery-cache.html


Query cache may help, but it is not the magic bullet in all cases.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:46 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0