MySQL Forums
Forum List  »  Performance

Re: Monitoring large resultsets
Posted by: Aftab Khan
Date: July 12, 2012 07:02AM

>If I understand you correctly, this means that the 2GB cache is being scanned all the time. For test purpposes, is there a way to specify "no cache" on these 2 queries or tables to make sure there is no cache scan happening then ?

As I said before your query_cache is too big, you can monitor query cache performance i.e. SHOW GLOBAL STATUS LIKE 'Qc%' to determine such as how much free space is available, cache hits etc. Note, query cache has got scalability issues.

You can use 'SQL_NO_CACHE', e.g.

SELECT SQL_NO_CACHE COUNT(id) FROM jos_content, jos_ijoomla.....


Similarly you can change query_cache_type=2 # on DEMAND,

http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html#sysvar_query_cache_type

http://dev.mysql.com/doc/refman/5.0/en/query-cache-in-select.html



Edited 1 time(s). Last edit at 07/12/2012 07:07AM by Aftab Khan.

Options: ReplyQuote


Subject
Views
Written By
Posted
2052
July 10, 2012 10:26PM
1121
July 11, 2012 02:01AM
901
July 12, 2012 02:19AM
953
July 12, 2012 03:37AM
943
July 12, 2012 04:13AM
987
July 12, 2012 05:49AM
Re: Monitoring large resultsets
1118
July 12, 2012 07:02AM
935
July 13, 2012 07:50PM
920
July 14, 2012 02:43AM
906
July 12, 2012 08:13AM
900
July 12, 2012 08:55AM
987
July 12, 2012 12:12PM


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.