Today I’m working on integrate the Percona toolkit (instead of maatkit) in my own
tools and I’m playing with pt-query-digest and
pt-query-advisor.
These tools can be very interesting to identify some queries from
established rules.
The –review option is available for two of
them and helps me to store a sample of each class of query
and match them with an advice.
The rules (or advices) are available in the
pt-query-advisor documentation and let you identify
various problems such as queries with an argument with leading
wildcard or with a table joined twice, for example.
There are 3 types of rules : note, …