[英]What is the use of ANALYZE TABLE key word in mysql?
Can it used to repair mysql index.可以用来修复mysql索引吗? I am facing performance issues even for queries that use index
即使对于使用索引的查询,我也面临性能问题
Depends on your version of MySQL and storage engine but in general:取决于您的MySQL版本和存储引擎,但一般而言:
OPTIMIZE TABLE Analyzes table, stores the key distribution for a table, reclaims the unused space and defragments the data file. OPTIMIZE TABLE分析表,存储表的密钥分布,回收未使用的空间并对数据文件进行碎片整理。
ANALYZE TABLE Only analyzes table and stores the key distribution. ANALYZE TABLE只分析表并存储键分布。
https://dev.mysql.com/doc/refman/5.6/en/analyze-table.html https://dev.mysql.com/doc/refman/5.6/en/analyze-table.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.