gpt4 book ai didi

mysql - 如何在 MySQL 中查找缺失的索引?

转载 作者:行者123 更新时间:2023-12-01 23:22:39 25 4
gpt4 key购买 nike

5,我想确定其中缺少的索引。有人可以帮我鉴定吗?这将帮助我们提高导致应用程序的查询的性能。

最佳答案

我能想到的最好的方法是使用 EXPLAIN 检查有索引和没有索引的查询的执行计划,然后查看查询性能的差异。

你也可以引用:

  • Does MySQL exectution plan depend on available indexes?
  • Using EXPLAIN to Write Better MySQL Queries
  • How to find un-indexed queries in MySQL, without using the log
  • 关于mysql - 如何在 MySQL 中查找缺失的索引?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30626876/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com