

There may be situations in which a full index scan is expected or necessary. Logging queries that aren’t using indexes can significantly increase verbosity. Queries that have an index available will still be logged if they lack constraints that limit the number of fetched rows.

This can help identify when a query is missing an index or is unable to use it. log_queries_not_using_indexes = 1 – When this setting is enabled, queries which are expected to retrieve all the records from the target table or view will be logged, even if they didn’t exclude the slow query threshold.Use log_slow_slave_statements instead for MySQL versions 8.0.26 and older.

