Skip to content

store: Change which indexes are created to support aggregations #5286

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

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

lutter
Copy link
Collaborator

@lutter lutter commented Mar 18, 2024

For cumulative aggregations, the code was confused about the table on which the index should be created. It needs to go on the aggregation table, not the underlying source table. These indexes have a significant impact on the performance of rollups, and having them on the wrong table makes rollups very slow.

Fixes #5280

@fordN fordN requested a review from incrypto32 April 8, 2024 15:38
For cumulative aggregations, the code was confused about the table on which
the index should be created. It needs to go on the aggregation table, not
the underlying source table. These indexes have a significant impact on the
performance of rollups, and having them on the wrong table makes rollups
very slow.

Fixes #5280
@lutter lutter merged commit 9586d7f into master Apr 11, 2024
@lutter lutter deleted the lutter/agg-idx branch April 11, 2024 18:34
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.

[Bug] Table.create_aggregate_indexes does it wrong
2 participants