關於mysql的Fetch Time 和 Duration Time


詳見:http://blog.yemou.net/article/query/info/tytfjhfascvhzxcyt411

Stackowerflow 上關於這兩個時間有人這樣解釋

Fetch time - measures how long transferring fetched results take, which has nothing to do with query execution. I would not consider it as sql query debugging/optimization option since fetch time depends on network connection, which itself does not have anything to do with query optimization. If fetch time is bottleneck then more likely there's some networking problem.

Note: fetch time may vary on each query execution.

Duration time - is the time that query needs to be executed. You should try to minimize it when optimizing performance of sql query.

 

其實說通俗一些,fetch time 就是數據在網絡上傳輸花費的時間,duration time是sql真正執行的時間


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM