Change materialized views to be refreshed concurrently to avoid locks (#29015)
This commit is contained in:
parent
c4af668e5c
commit
fa0ba67753
7 changed files with 11 additions and 7 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
class CreateAccountSummaries < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_view :account_summaries, materialized: { no_data: true }
|
||||
create_view :account_summaries, materialized: true
|
||||
|
||||
# To be able to refresh the view concurrently,
|
||||
# at least one unique index is required
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue