Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

store: Do not create GIN indexes for numeric arrays #4628

Merged
merged 1 commit into from
May 18, 2023
Merged

Conversation

lutter
Copy link
Collaborator

@lutter lutter commented May 17, 2023

GIN indexes are pretty expensive to build and maintain. For fields of types like [BigInt!]! or [BigDecimal!]!, they also don't help much since they only support looking for exact values, which is very unlikely to happen in a query, and even less unlikely to be the filter that the query planner would use.

Copy link
Collaborator

@leoyvens leoyvens left a comment

Choose a reason for hiding this comment

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

I'm also suspicious of whether GIN indexes carry their weight.

@lutter lutter merged commit 77c8d34 into master May 18, 2023
5 of 6 checks passed
@lutter lutter deleted the lutter/gin branch May 18, 2023 16:12
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.

None yet

2 participants