passing multiple raw sql commands to ActiveRecord::Base.connection.execute returns nil but thesame sql works as psql command · Issue #27989 · rails/ rails · GitHub
Not able to execute a stored procedure using direct execute with raw sql · Issue #524 · rails-sqlserver/activerecord-sqlserver-adapter · GitHub
![Kirill Shevchenko on Twitter: "The first thing that comes to mind when we talk about debugging slow SQL is EXPLAIN query. It's a great way to get a detailed breakdown of a Kirill Shevchenko on Twitter: "The first thing that comes to mind when we talk about debugging slow SQL is EXPLAIN query. It's a great way to get a detailed breakdown of a](https://pbs.twimg.com/media/Fj3RQPSWQAU2JIG.jpg)