Conversation
Signed-off-by: Uroš Marolt <uros@marolt.me>
|
Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability. Example:
Projects:
Please add a Jira issue key to your PR title. |
2 similar comments
|
Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability. Example:
Projects:
Please add a Jira issue key to your PR title. |
|
Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability. Example:
Projects:
Please add a Jira issue key to your PR title. |
There was a problem hiding this comment.
Pull request overview
Adds a targeted B-tree partial index to speed up equality lookups on verified, non-deleted email identities (where the existing trigram GIN index is not well-suited for = predicates).
Changes:
- Add a concurrent B-tree partial index on
memberIdentities(lower(value))scoped toverified = true,type = 'email', and"deletedAt" IS NULL. - Add an undo migration to drop the new index concurrently.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| backend/src/database/migrations/V1774363114__add-btree-index-for-member-identities-email-lookup.sql | Creates the new concurrent partial B-tree index intended for verified-email equality lookups. |
| backend/src/database/migrations/U1774363114__add-btree-index-for-member-identities-email-lookup.sql | Drops the newly added index concurrently for rollback/undo scenarios. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability. Example:
Projects:
Please add a Jira issue key to your PR title. |
1 similar comment
|
Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability. Example:
Projects:
Please add a Jira issue key to your PR title. |
… backend/ Signed-off-by: Uroš Marolt <uros@marolt.me>
9169c64 to
57cfebd
Compare
|
Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability. Example:
Projects:
Please add a Jira issue key to your PR title. |
Signed-off-by: Uroš Marolt <uros@marolt.me> Signed-off-by: Yeganathan S <63534555+skwowet@users.noreply.github.com>
Note
Medium Risk
Introduces a new concurrent partial index on
memberIdentities, which can impact migration runtime and database load on large tables but is otherwise isolated to query performance.Overview
Improves performance of email identity joins by adding a concurrent partial B-tree index on
memberIdentities(lower(value))scoped toverified = true,type = 'email', and non-deleted rows.Adds the corresponding down migration to drop
idx_memberIdentities_verified_email_lower_valueif present.Written by Cursor Bugbot for commit 57cfebd. This will update automatically on new commits. Configure here.