我已使用以下参数配置AWS RDS:
join_buffer_size: 67108864
log_queries_not_using_indexes: 1
long_query_time: 0
query_cache_size: 67108864
query_cache_type: 1
slow_query_log: 1
Mysqltuner提供以下输出:
[!!] Slow queries: 98% (764K/772K)
[OK] Highest usage of available connections: 1% (51/5082)
[OK] Key buffer size / total MyISAM indexes: 16.0M/420.5M
[OK] Key buffer hit rate: 98.1% (41M cached / 789K reads)
[OK] Query cache efficiency: 70.2% (381K cached / 543K selects)
[OK] Query cache prunes per day: 0
[OK] Sorts requiring temporary tables: 0% (50 temp sorts / 85K sorts)
[!!] Joins performed without indexes: 3023
[OK] Temporary tables created on disk: 2% (1K on disk / 67K total)
[OK] Thread cache hit rate: 99% (51 created / 47K connections)
[OK] Table cache hit rate: 25% (1K open / 6K opened)
[OK] Open file limit used: 1% (1K/65K)
[OK] Table locks acquired immediately: 98% (985K immediate / 998K locks)
我的查询日志很慢。我想我应该为每个查询得到一个。我该如何解决这个问题?
答案 0 :(得分:0)