As you might now, Rails 7 allows us to use explain with parameters.
From now on, we can use it for example with analyze: true flag, which gives us much more information about the query.
In Rails this option is not available, but we can use some tricks to show the result simply.
Read more