prepend_comment is breaking ActiveRecord's explain
anmolarora opened this issue · 1 comments
anmolarora commented
anmolarora 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.