explain
select distinct quoteid, itemname, model, numbers, ver from tbquotedata
Using index for group-by
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE tbquotedata range LianHeIndex LianHeIndex 303 85748 100.00 Using index for group-by
tbquotedata表有120萬條記錄,當前的查詢速度Duration/Fetch 0.047sec /11.234 sec
如何優化提高查詢速度,謝謝!
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/284899.html
標籤:MySQL
上一篇:initalizing database 的錯誤日志 紅色部分如何解決
下一篇:定義一個長度為20的陣列,元素為20-40的亂數, 要求判斷指定元素在陣列中出現的次數,指定元素為鍵盤錄入范圍為20-40之間。