I run a WordPress website on Mariadb 10.6, and recently I saw an error Joins performed without indexes in Mysqltuner.
Although the number is not very large, Mysqltuner recommends that you keep increasing the Key_buffer_size.
However, my VPS doesn't have a lot of free memory, so I'm solving this error with another issue.
Since I have about dozens of plugins active, I want to check which awesome plugin is causing the problem.
So, first of all, I enabled the error log as follows.
log-queries-not-using-indexes = 1
log_error = /var/log/mysql/mysql-error.log
slow_query_log = 1
slow_query_log_file = /var/log/mysql/mysql-slow.log
long_query_time = 3
And after a certain period of time, I ran pt-query-digest to analyze the error log.
pt-query-digest /var/log/mysql/mysql-slow.log
But I can't figure out any other problems.
Among the many queries in the slow log, how can you determine which one is trying to join with a column without an index?
I don't know the database, so I can't figure it out just by looking at the query.