How can I measure the execution time of a query without measuring the time it spends waiting for a lock release etc? My only idea was to continuously measure same query and record the fastest time.
相关问题
- sqlyog export query result as csv
- NOT DISTINCT query in mySQL
- MySQL: conduct a basic search
- Why sometimes there is one of more gap(s) in the v
- mySQL alter table on update, current timestamp
The answer is becoming invalid...
SHOW PROFILE[S]
are deprecated as of MySQL 5.6.7 and will be removed in a future MySQL release. Use the Performance Schema instead; see http://dev.mysql.com/doc/refman/5.6/en/performance-schema-query-profiling.htmlStart the profiler with
Then execute your Query.
With
you see a list of queries the profiler has statistics for. And finally you choose which query to examine with
or whatever number your query has.
What you get is a list where exactly how much time was spent during the query.
More info in the manual.