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

后端 未结 2 1812
执笔经年
执笔经年 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 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

提交回复
热议问题