A quick look at pg_stat_statements shows this can be a slow one without an index on this field.
10 lines
141 B
Ruby
10 lines
141 B
Ruby
# frozen_string_literal: true
|
|
|
|
Sequel.migration do
|
|
no_transaction
|
|
|
|
change do
|
|
add_index :vm, [:pool_id], concurrently: true
|
|
end
|
|
end
|