module ActiveRecord::ConnectionAdapters::PostgreSQL::DatabaseStatements
Public Instance Methods
analyze(arel, binds = [])
click to toggle source
# File lib/sql_optimizer/analyze.rb, line 5 def analyze(arel, binds = []) sql = "EXPLAIN ANALYZE #{to_sql(arel, binds)}" PostgreSQL::ExplainPrettyPrinter.new.pp(exec_query(sql, 'EXPLAIN ANALYZE', binds)) end