Follow

Run EXPLAIN ANALYZE on an ActiveRecord query if you use Postgres:

puts ActiveRecord::Base.connection.execute("explain analyze #{your_query.to_sql}").values

Sign in to participate in the conversation
Ruby.social

A Mastodon instance for Rubyists & friends