Skip to content

Commit

Permalink
fix(batch-exports): Enable aggregation in order optimization (#25312)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias authored Oct 1, 2024
1 parent 6d8bc6b commit cd2bed0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion posthog/temporal/batch_exports/batch_exports.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
-- This is half of configured MAX_MEMORY_USAGE for batch exports.
-- TODO: Make the setting available to all queries.
max_bytes_before_external_group_by=50000000000,
max_bytes_before_external_sort=50000000000
max_bytes_before_external_sort=50000000000,
optimize_aggregation_in_order=1
"""

SELECT_FROM_EVENTS_VIEW = Template(
Expand Down

0 comments on commit cd2bed0

Please sign in to comment.