feat(perf): contact page loading speed (#7629)

This commit is contained in:
Shivam Mishra
2023-07-27 13:32:22 +05:30
committed by GitHub
parent fcf0ba12d0
commit ff97536095
3 changed files with 11 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
class AddPartialIndexContactAccountId < ActiveRecord::Migration[7.0]
disable_ddl_transaction!
def change
add_index :contacts, [:account_id], where: "(email <> '' OR phone_number <> '' OR identifier <> '')",
name: 'index_resolved_contact_account_id', algorithm: :concurrently
end
end