To ensure your test cases call efficient MySQL…
# just wrap them in this block!
The assertion intercepts and copies out your MySQL SELECT statements,
calls EXPLAIN on each one, and inspects the results for common problems.
The goal is test cases that resist database pessimization, even as you
your data relations, to add new features. If you run your tests after
every few changes, you can easily detect which change broke your
indices and relations.