phpMyAdmin show my DB version as: Server version: 10.0.21-MariaDB-log - openSUSE package
I have my slow query log settings as follows:
long_query_time = 0.200000
slow_query_log = 1
slow_query_log_file = /var/log/mysql/queries-slow.log
log_queries_not_using_indexes = 1
For some reason I get queries being logged are not slow enough to need to be logged. E.g. from the log:
> tail -n 100 -f /var/log/mysql/queries-slow.log|grep 'Query_time:'
Query_time: 0.000103 Lock_time: 0.000029 Rows_sent: 3 Rows_examined: 6
Query_time: 0.000441 Lock_time: 0.000083 Rows_sent: 35 Rows_examined: 70
Query_time: 0.000589 Lock_time: 0.000517 Rows_sent: 0 Rows_examined: 0
Query_time: 0.000386 Lock_time: 0.000324 Rows_sent: 0 Rows_examined: 0
Query_time: 0.000227 Lock_time: 0.000204 Rows_sent: 0 Rows_examined: 0
Query_time: 0.000436 Lock_time: 0.000360 Rows_sent: 0 Rows_examined: 0
Query_time: 0.001469 Lock_time: 0.000375 Rows_sent: 0 Rows_examined: 684
Any ideas on why these queries that are clearly quick enough to not be logged, are being logged?
Thanks!