Professional Documents
Culture Documents
• Logging slow queries can help you determine issues with your
database and help you debug them.
Configure query_cache_size
• If you have many repetitive queries and your data does not change
often – use query cache. People often do not understand the concept
behind the query_cache_size and set this value to gigabytes, which
can actually cause degradation in the performance.
• The reason behind that is the fact that threads need to lock the cache
during updates. Usually value of 200-300 MB should be more than
enough. If your website is relatively small, you can try giving the value
of 64M and increase in time.