- Notifications
You must be signed in to change notification settings - Fork6
master -> dev - Merge pull request #39 from topcoder-platform/PM-2206-2nd-fix#53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Additional performance tweak for picachui
| -- Improve search responsiveness for group-constrained queries | ||
| CREATEINDEXIF NOT EXISTS"challenge_groups_gin_idx" | ||
| ON"challenges"."Challenge" | ||
| USING GIN ("groups"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
[❗❗correctness]
Ensure that thegroups column is of a type that supports GIN indexing, such asjsonb orarray. Using GIN on unsupported types can lead to unexpected behavior or performance issues.
| @@index([updatedAt]) | ||
| @@index([typeId]) | ||
| @@index([trackId]) | ||
| @@index([groups],type:Gin,map:"challenge_groups_gin_idx") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
[performance]
The use of a GIN index on thegroups array field is appropriate for improving query performance involving array operations. However, ensure that thepg_trgm extension is enabled in your PostgreSQL database if you plan to use trigram-based searches with this index. Without it, certain operations may not perform as expected.
38c74bd intodevelopUh oh!
There was an error while loading.Please reload this page.
Additional performance tweak for picachui