feat(perf): contact page loading speed (#7629)
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user