prepend_comment is breaking ActiveRecord's explain
anmolarora opened this issue · comments
Anmol Arora commented
Anmol Arora commented
Looks like the issue is on this line where rails
filters out the queries for explain using regex.
Since for explain
to work, the query needs to start with one of (with|select|update|delete|insert)
. And when you enable prepend_comment
, the query starts with the comment.