What is the unit of time in MySQL's slow-query log?

后端 未结 2 1800
执笔经年
执笔经年 2021-01-01 11:14

I\'m looking at the slow query log from a drupal-based webapp, and have lines that look like this:

# Query_time: 3257  Lock_time: 0  Rows_sent: 272  Rows_exa         


        
相关标签:
2条回答
  • 2021-01-01 11:58

    Only since MySQL 5.1.21 that you can specify a decimal value and has a resolution of microsecond. http://dev.mysql.com/doc/refman/5.1/en/slow-query-log.html

    0 讨论(0)
  • 2021-01-01 12:05

    It's in seconds. The 'resolution of microseconds' means, that you can have up to microsecond precision after a decimal (although AFAIK it need a patch to actually write with such precision)

    https://github.com/wvanbergen/request-log-analyzer/wiki/MySQL-slow-query-log

    0 讨论(0)
提交回复
热议问题