Amazon RDS MySQL instance performs very slow

前端 未结 7 1566
轻奢々
轻奢々 2021-01-31 17:58

I have published my website on Amazon EC2 (Singapore region) and I have used MySQL RDS instance for the data storage. Everything is working very fine except performance.

7条回答
  •  再見小時候
    2021-01-31 18:21

    It is worth noting that, for whatever reason, MySQL query cache is OFF by default in RDS. We learned that the hard way ourselves this week.

    This won't help performance of your initial query, but it may speed things up in general.

    To re-enable query cache:

    1. Log in to the RDS Console
    2. Click on your RDS instance to view it's details
    3. Edit the Database Parameter Group
    4. Be sure to set both query_cache_size and query_cache_type

    (Disclaimer: I am not a DBA so there may be additional things I'm missing here)

提交回复
热议问题