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

chore(batch-exports): Allow external sort on all models #25299

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

tomasfarias
Copy link
Contributor

@tomasfarias tomasfarias commented Oct 1, 2024

Problem

From time to time, batch exports may use too much memory. We do not allow the ClickHouse queries to spill to disk, so they just fail.

Changes

Enable external sorting to allow spilling to disk when memory is running to tight.

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

Does this work well for both Cloud and self-hosted?

Yup.

How did you test this code?

We have been running this setting in persons export to great success, this just enables it for the other queries too.

@tomasfarias tomasfarias requested a review from a team October 1, 2024 09:24
@tomasfarias tomasfarias merged commit a8fe118 into master Oct 1, 2024
89 checks passed
@tomasfarias tomasfarias deleted the chore/allow-external-sort-for-batch-exports branch October 1, 2024 13:03
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