chore: Add Index for widget contact lookup (#6998)

- Adds an index to improve the contact lookup performance while calling setUser from widget
This commit is contained in:
Sojan Jose
2023-04-26 19:22:16 +05:30
committed by GitHub
parent 37fde64c67
commit 3fa654f5c6
3 changed files with 10 additions and 1 deletions

View File

@@ -17,6 +17,7 @@
# Indexes
#
# index_contacts_on_account_id (account_id)
# index_contacts_on_lower_email_account_id (lower((email)::text), account_id)
# index_contacts_on_name_email_phone_number_identifier (name,email,phone_number,identifier) USING gin
# index_contacts_on_phone_number_and_account_id (phone_number,account_id)
# uniq_email_per_account_contact (email,account_id) UNIQUE