mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
PERF: Drop index idx_regular_post_search_data concurrently
This can slightly help with the drop command. That said if a giant vacuum is running we may still time out.
This commit is contained in:
parent
628319aad3
commit
54cf3c6766
@ -38,7 +38,7 @@ class UpdatePrivateMessageOnPostSearchData < ActiveRecord::Migration[6.0]
|
||||
# must drop index cause we do not want an enormous amount of work done
|
||||
# as we are changing data
|
||||
execute <<~SQL
|
||||
DROP INDEX IF EXISTS idx_regular_post_search_data
|
||||
DROP INDEX CONCURRENTLY IF EXISTS idx_regular_post_search_data
|
||||
SQL
|
||||
|
||||
# Delete post_search_data of orphaned posts
|
||||
|
Loading…
Reference in New Issue
Block a user