-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(batchexports): Optimize person batch exports query for memory usa…
…ge (#23843)
- Loading branch information
1 parent
87e525b
commit b33d7e2
Showing
3 changed files
with
30 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
posthog/clickhouse/migrations/0073_update_person_batch_exports_query_for_memory.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from posthog.batch_exports.sql import ( | ||
CREATE_PERSONS_BATCH_EXPORT_VIEW, | ||
) | ||
from posthog.clickhouse.client.migration_tools import run_sql_with_exceptions | ||
|
||
operations = map( | ||
run_sql_with_exceptions, | ||
[ | ||
CREATE_PERSONS_BATCH_EXPORT_VIEW, | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters