Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(data-imports): raise batcher default chunk size to 500k rows (#77206)

estefania854b327053dd
diff --git a/products/warehouse_sources/backend/temporal/data_imports/pipelines/core/batcher.py b/products/warehouse_sources/backend/temporal/data_imports/pipelines/core/batcher.py
index 33b48345dbcb..bc1273286d2e 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/pipelines/core/batcher.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/pipelines/core/batcher.py
@@ -13,7 +13,7 @@ from products.warehouse_sources.backend.temporal.data_imports.pipelines.core.tab
)
DEFAULT_CHUNK_SIZE_BYTES: int = 200 * 1024 * 1024 # 200 MiB
-DEFAULT_CHUNK_SIZE: int = 5000
+DEFAULT_CHUNK_SIZE: int = 500_000
# string/binary/list use 32-bit offsets and overflow ("Offset overflow error") once a column's
# offsets cross 2^31 (~2.1 GB); delta-rs hits this when it concatenates merge-source chunks.