chore: Improve search, list performance of contact/conversation APIs (#2696)

This commit is contained in:
Pranav Raj S
2021-07-23 18:39:24 +05:30
committed by GitHub
parent 6e1493501a
commit 7664006625
13 changed files with 70 additions and 25 deletions

View File

@@ -0,0 +1,6 @@
class AddIndexToConversations < ActiveRecord::Migration[6.0]
def change
add_index :conversations, [:status, :account_id]
add_index :conversations, [:assignee_id, :account_id]
end
end

View File

@@ -0,0 +1,5 @@
class AddIndexToContacts < ActiveRecord::Migration[6.0]
def change
add_index :contacts, [:phone_number, :account_id]
end
end