I am setting up cache in MySQL.
Could someone please explain query_cache_min_res_unit?
What does it do etc?
I have read the manual and it doesn’t explain so good.
Details are appreciated… Or examples…
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
query_cache_min_res_unitis a variable which may be used for optimization queries, depending on large of result sets you may be working with.By definition, the value is the minimum amount of memory MySQL will allocate to store a query.
You would want the this value to be roughly the average query size. Each database has different values for the minimum, depending on how large of sets you are working with.
Here is mine:
As you can see, my minimum value is 4096 bytes.
As a follow-up, you can read more at Optimizing the MySQL Query Cache