0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-21 13:39:22 +01:00

chore(batch-exports): Add (more) memory limits to persons query (#25225)

This commit is contained in:
Tomás Farías Santana 2024-09-26 17:37:45 +02:00 committed by GitHub
parent b692e78d72
commit 5f39825513
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,9 +55,11 @@ FROM
interval_end={interval_end}
) AS persons
FORMAT ArrowStream
-- This is half of configured MAX_MEMORY_USAGE for batch exports.
-- TODO: Make the setting available to all queries.
SETTINGS max_bytes_before_external_group_by=50000000000
SETTINGS
-- 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
"""
SELECT_FROM_EVENTS_VIEW = Template(