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

misc: Refact aggregation query to speedup field presence check #1344

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

vincent-pochet
Copy link
Collaborator

Context

Aggregation are slow on large events volume and we need to improve that

Description

This PR changes field presence check on all aggregation to move from a IS NOT NULL to the proper json operator so that the GIN index could be used by PG

@vincent-pochet vincent-pochet added Billable Metric Related to the billable metrics Event Related to Events improvement labels Sep 22, 2023
@vincent-pochet vincent-pochet self-assigned this Sep 22, 2023
@vincent-pochet vincent-pochet merged commit eb5d079 into main Sep 22, 2023
5 checks passed
@vincent-pochet vincent-pochet deleted the misc-speedup-sums branch September 22, 2023 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Billable Metric Related to the billable metrics Event Related to Events improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants