MySQL query caching: limited to a maximum cache size of 128 MB?

后端 未结 6 1783
北荒
北荒 2021-01-30 17:31

My application is very database intensive so I\'ve tried really hard to make sure the application and the MySQL database are working as efficiently as possible together.

6条回答
  •  北恋
    北恋 (楼主)
    2021-01-30 17:55

    Usually "too big cache size" warnings are issued under assumption that you have few physical memory and the cache itself well need to be swapped or will take resources that are required by the OS (like file cache).

    If you have enough memory, it's safe to increase query_cache size (I've seen installations with 1GB query cache).

    But are you sure you are using the query cache right? Do have lots of verbatim repeating queries? Could you please post the example of a typical query?

提交回复
热议问题