MySQL has a great feature called "Query Cache". It allows you to improve MySQL server performance. It is quite useful to speed up third party application and/or low load applications.
Enabling MySQL Query Cache
Edit MySQL config file such as /etc/my.cnf:# vi /etc/my.cnfAppend /modify config directives as follows:
query_cache_size = 268435456In above example the maximum size of individual query results that can be cached set to 1048576 using query_cache_limit system variable. Memory size in defined in Kb. The query_cache_size defines the amount of memory allocated for caching query results. The default value is 0, which disables the query cache. The allowable values are multiples of 1024; other values are rounded down to the nearest multiple. Once done restart mysql server. Please note that this is not distributed caching solution.
query_cache_type=1
query_cache_limit=1048576
No comments:
Post a Comment