phpMyAdmin - Query Execution Time

前端 未结 4 1055
谎友^
谎友^ 2021-01-22 23:58

When I execute a simple statement in phpMyAdmin like

SELECT *
FROM a

where \"a\" has 500\'000 rows, it gives me a time of a few milliseconds on

4条回答
  •  别那么骄傲
    2021-01-23 00:28

    Besides splash21's answer, it is a good idea to use SQL_NO_CACHE when testing for execution time. This makes sure that you are looking at the real time to do the query, not just grabbing a cached result.

    SELECT SQL_NO_CACHE *
    FROM a
    

提交回复
热议问题