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(event): Remove ordering of event queries when not required #2618

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

vincent-pochet
Copy link
Collaborator

@vincent-pochet vincent-pochet commented Sep 23, 2024

Context

When running aggregation for billable metrics we are (almost) always ordering events by the timestamp property.
In most cases this order is not necessary since the end-result will not be dependent of the event order (sum, count, max...) and the order clause might slow down the queries.

Description

This PR updates all events-related aggregation queries to get rid of the order and keep it only when required. This should allow for a small gain in aggregation performances.

@vincent-pochet vincent-pochet merged commit cb4fc4e into main Sep 24, 2024
6 checks passed
@vincent-pochet vincent-pochet deleted the misc-event-store-order branch September 24, 2024 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.

2 participants