MySQL Forums
Forum List  »  Performance

Re: caching table
Posted by: Andrew Simkovsky
Date: September 01, 2013 10:26PM

For the most part, MySQL will already cache tables for you. That's what the innodb buffer pool and key buffer caches are for. However, these caches are shared across all operations, which means that over time, infrequently used tables can be pushed out. If these areas aren't big enough, even data that is accessed frequently can still be pushed out rapidly as new data comes in.

So depending on if the tables are myisam or innodb, you could try increasing these buffer areas to see if it helps. innodb buffer pool is obviously for innodb, while key buffer cache is for myisam.

You COULD enable the query cache, which stores the queries and their results for reuse, but that could get tricky, and may sometimes cause more harm than good. I would increase the normal buffers first, before messing with the query cache.

Andrew Simkovsky
More mysql forums (and other databases):
http://www.dbtekpro.com/forums
Brand new! Just post!

Options: ReplyQuote


Subject
Views
Written By
Posted
2087
August 15, 2013 03:40PM
1027
September 01, 2013 12:11PM
Re: caching table
893
September 01, 2013 10:26PM


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.