Wrox Programmer Forums
|
MySQL General discussion about the MySQL database.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the MySQL section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 14th, 2006, 11:49 AM
Registered User
 
Join Date: Sep 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default mysql cache

i have turned on mysql caching. But i want to know which queries are cached. Is there a way to know them ?

 
Old March 26th, 2007, 07:42 AM
Registered User
 
Join Date: Feb 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There are 3 main variables, which can be used to tune Query Cache settings. They are query_cache_size, query_cache_limit and query_cache_type.

As the query arrives to MySQL server it performs a textual comparison with the queries in the Query Cache. This means "SELECT * FROM a" and "Select * From a" will be recognized as different queries. If a query matches one stored in the cache, the cached result is returned. If not, then the query is executed and if parameters allow the query result is stored in the query cache. When a table is modified, queries stored in the cache using the modified table, are removed from query cache.

------------------------------
http://www.softsea.com/





Similar Threads
Thread Thread Starter Forum Replies Last Post
about using cache benordz ASP.NET 2.0 Basics 2 April 25th, 2008 09:19 AM
Cache problem jeanzz83 ASP.NET 1.0 and 1.1 Basics 1 January 3rd, 2006 12:36 PM
cache pab006 Classic ASP Basics 3 January 22nd, 2004 05:29 AM
Cache problem hrishimusale Classic ASP Basics 0 August 27th, 2003 04:00 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.