phpMyAdmin - Query Execution Time

前端 未结 4 1057
谎友^
谎友^ 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条回答
  •  -上瘾入骨i
    2021-01-23 00:45

    phpMyAdmin automatically appends a LIMIT clause to your statement, so it has a smaller result set to return thus making it faster.

    Even if you need all 300,000 or 500,000 results then you should really use a LIMIT. Multiple smaller queries does not necessarily mean same execution time as a single big query.

提交回复
热议问题