lucasacoutinho/clickhouse-laravel
ClickHouse integration for Laravel that connects your app to the ClickHouse columnar database using familiar query builder and Eloquent-style syntax, making it easy to run fast analytics queries and store large volumes of event data alongside your existing application.
CLICKHOUSE_MAX_BUFFERED_ROWS and CLICKHOUSE_MAX_BUFFERED_BYTES let you size ingestion buffers independently for local, staging, and production. Product-side, this maps directly to questions like "how much memory headroom do our queue workers need?" and "how large are our insert batches, and therefore how many parts are we creating in ClickHouse?"null limits fall back to 1,000,000 rows / 64 MiB. A team can ship with no tuning at all and still get a bounded, documented envelope — useful when deciding whether a feature can go live before the platform team has finished sizing work.Consider it when:
Look elsewhere when:
Open question to resolve before committing: the note references "PDO's defaults" of 1,000,000 rows and 64 MiB. Engineering should confirm these defaults are appropriate for your worker memory limits — a 64 MiB buffer multiplied across N workers is the number that matters for capacity planning, and that multiplication is the PM's job to surface, not the package's.
To executives (one paragraph): This release makes our ClickHouse ingestion path tunable through standard environment configuration instead of code changes, with safe documented defaults and validation that rejects bad values at startup. Practically, that means we can size and adjust our analytics write buffers per environment without a deploy, we get a predictable memory ceiling by default, and we reduce the operational risk of letting teams own their own ingestion settings. It is a small, low-risk change that improves the package's operational maturity and supports adopting it rather than building and maintaining our own buffering layer.
To engineering (the substance): Buffer limits are now ordinary nullable env entries in the published config — CLICKHOUSE_MAX_BUFFERED_ROWS and CLICKHOUSE_MAX_BUFFERED_BYTES. Unset or null means PDO defaults of 1,000,000 rows and 64 MiB; explicit values must be positive integers, so invalid config fails fast rather than silently degrading. Action items: confirm the default 64 MiB is safe multiplied by our worker count, set explicit values in production rather than relying on defaults, and add buffer sizing to the runbook so on-call can adjust during an incident. Upgrade is a config-plus-dependency change with no described breaking change to application code, but the published config file will need republishing or manual merging to pick up the new keys.
Positioning: treat this as an operational-readiness release, not a feature release. Its value is in de-risking adoption and shifting tuning left to infrastructure — not in new user-facing capability.
How can I help you explore Laravel packages today?