Home » Performance » MySQL » Is there a way to control query expiration time in cache?
Is there a way to control query expiration time in cache? [message #2962] Wed, 16 April 2008 02:29 Go to next message
hairroot  is currently offline hairroot
Messages: 7
Registered: April 2008
Junior Member
I am not quite sure when the query got to be expired in query cache.

Does mysql tick out the least recently used query when the cache is full?

my question is:
can I let a query exist in the cache for a specific time(a day for example)?

thanks
Re: Is there a way to control query expiration time in cache? [message #2963 is a reply to message #2962 ] Wed, 16 April 2008 03:24 Go to previous message
safari  is currently offline safari
Messages: 26
Registered: August 2006
Location: Vietnam
Junior Member
Hi,
You should read about MySQL cache to have better understanding. Good start are at http://dev.mysql.com/doc/mysql/en/Query_Cache.html and http://dev.mysql.com/tech-resources/articles/mysql-query-cac he.html

I guess what you're looking for is just a cache layer in between your application and (mysql) database server.

Please consider of using memcached for this type of caching.

Regards.
Previous Topic:The Slowness of "WHERE something IN (SELECT....)"
Next Topic:ORDER BY ..LIMIT using indexes still slow
Goto Forum:
  



Current Time: Fri Dec 5 11:21:33 EST 2008

Total time taken to generate the page: 0.00896 seconds
.:: Contact :: Home :: MySQL Support by Percona.com ::.

Powered by: FUDforum 2.7.5.
Copyright ©2001-2006 FUD Forum Bulletin Board Software

MySQL Performance | Forum authority Badge