Method: PgSlice::CLI#analyze
- Defined in:
- lib/pgslice/cli/analyze.rb
#analyze(table) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/pgslice/cli/analyze.rb', line 5 def analyze(table) table = create_table(table) parent_table = [:swapped] ? table : table.intermediate_table analyze_list = parent_table.partitions + [parent_table] run_queries_without_transaction(analyze_list.map { |t| "ANALYZE VERBOSE #{quote_table(t)};" }) end |