Sound familiar?
- ▸ Compaction backlog — system.parts shows tens of thousands of parts per partition and ingestion is throttling at max_parts_in_total.
- ▸ p99 query latency cliff — analyst queries that were sub-second three months ago now run 10-30 seconds, and the team doesn't know why.
- ▸ Replication lag — ZooKeeper or Keeper is the suspect but the team needs a defensible tuning plan before scaling.
JusDB ClickHouse performance specialists run query-log audits and ship before/after benchmarks. Book a ClickHouse perf tuning call →
Execution — query rewrites, schema tuning, config remediation
ClickHouse Performance Tuning
MergeTree compaction tuning, projection design, query rewrites (PREWHERE, JOIN order), shard-key audit, replication lag remediation — for production ClickHouse workloads with before/after benchmarks. See ClickHouse consulting for the architecture-decision phase or migration runbooks.
What our ClickHouse perf tuning covers
Each engagement ships query rewrites, schema tuning, and config remediation with documented before/after benchmarks.
MergeTree Compaction
background_pool_size tuning, merge frequency, max_parts_in_total balance, OPTIMIZE FINAL strategy for catching up on backlog.
Projection Design
Same-table query-rewrite acceleration mapped from system.query_log digest analysis — replace expensive ad-hoc patterns with projections.
Query Optimization
PREWHERE placement, JOIN reordering, materialized-view-aware filtering, SETTINGS hints for parallelism and memory.
Replication Lag
ZooKeeper / ClickHouse Keeper tuning, replication queue analysis, replicated_can_become_leader strategy for HA.
Memory & Concurrency
max_memory_usage per query, max_concurrent_queries, max_server_memory_usage — balanced against working-set + ingestion.
Shard-Key Audit
Skew detection via system.parts distribution, shard rebalance strategy, Distributed-table layer tuning.