MySQL - 強制不使用緩存來測試查詢速度 - MySQL - force not to use cache for testing speed of query

問題:

I'm testing the speed of some queries in MySQL.我正在測試 MySQL 中某些查詢的速度。 The database is caching these queries making it difficult for me to get reliable results when testing how fast these queries are.數據庫正在緩存這些查詢,這使我在測試這些查詢的速度時很難獲得可靠的結果。

Is there a way to disable caching for a query?有沒有辦法禁用查詢的緩存?

System: MySQL 4 on Linux webhosting, I have access to PHPMyAdmin.系統:Linux 虛擬主機上的 MySQL 4,我可以訪問 PHPMyAdmin。

Thanks謝謝


解決方案:

參考一: https://en.stackoom.com/question/lJm
參考二: https://stackoom.com/question/lJm
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章