Skip to content

Conversation

@jmgasper
Copy link
Contributor

@jmgasper jmgasper merged commit 0a4a03f into develop Nov 12, 2025
7 checks passed
@@ -0,0 +1,4 @@
-- Improve search responsiveness for group-constrained queries
CREATE INDEX IF NOT EXISTS "challenge_groups_gin_idx"
ON "challenges"."Challenge"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[❗❗ correctness]
Ensure that the groups column is of a type that supports GIN indexing, such as jsonb or an array type. If it is not, the index may not function as intended.

@@index([updatedAt])
@@index([typeId])
@@index([trackId])
@@index([groups], type: Gin, map: "challenge_groups_gin_idx")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ correctness]
The use of a GIN index on the groups array field is appropriate for efficient querying of array contents. Ensure that the pg_trgm extension is enabled in your PostgreSQL database to support this index type, as it is required for GIN indexes on text arrays.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants