[英]With same table structure there is different behavior of query plan on different environments
案例輸入 Mysql 生產和測試版本:5.7 詢問: 表結構: 解釋Output: 測試解釋OP 產品說明 OP 由於沒有在測試服務器上獲取所需的索引,因此與生產相比執行起來要花費很多時間。 想知道為什么它沒有在具有相同表結構的測試服務器上獲取所需的索引。 我試過了 Force index 工作正常 ...