Tag: clickhouse

Posts tagged "clickhouse"

Un-sharding a ClickHouse Distributed Table into ReplicatedMergeTree

How to turn a sharded Distributed + MergeTree table into a single ReplicatedMergeTree table with a full copy on every node: freezing writes, creating the table with a shard-free ZooKeeper path, copying with INSERT ... SELECT, verifying with checksums, and cutting over safely. Rehearsed step by step on dummy data.

October 20, 202610 min read

Bloom Filters in Analytical Databases - Part 3 - ClickHouse vs StarRocks

A side-by-side look at how ClickHouse and StarRocks use Bloom filters: granules vs pages, tunable vs automatic indexes, text search, join runtime filters, and how to verify each. Plus a decision guide for when to use what.

October 13, 202611 min read

Bloom Filters in Analytical Databases - Part 1 - ClickHouse

How ClickHouse uses Bloom filter skip indexes to avoid reading data, how to choose between bloom_filter, tokenbf_v1 and ngrambf_v1, how to size them, and how to tell whether they actually work.

October 9, 202614 min read

Inside StarRocks Storage - Why the Fastest Read Is the One That Never Happens

A plain-language tour of StarRocks' storage hierarchy, from catalogs, partitions and tablets down to rowsets, segments and data pages, and how zone maps, bitmap indexes and bloom filters let queries skip most of the data without ever reading it.

September 25, 202619 min read

ClickHouse 26.2 Broke insert_deduplicate = 0 - Why Your Re-Inserts Silently Vanish and How to Fix It

After upgrading to ClickHouse 26.2+, re-inserting identical data into Replicated tables can be silently dropped even though the insert reports success. Here's exactly why it happens and the right way to fix it.

September 21, 202611 min read

iowait - When Storage Problems Wear a CPU Costume

When a disk stops responding, the CPU doesn't go idle — it goes into iowait, and many tools (SNMP included) roll that into a single "CPU load" number. So a storage failure shows up as a CPU alarm. This is how one such alert on a production ClickHouse node led down through iowait and a hung txg_sync to the real cause - a single EBS volume, no redundancy, that briefly lost access.

September 15, 20266 min read

The Null That Wouldn't Die - A ClickHouse ReplacingMergeTree Debugging Story

A real production debugging story — how a ReplacingMergeTree table with no version column lets the wrong row quietly win, and why "just delete the table" would have hidden the real bug.

September 14, 202613 min read

ClickHouse Disaster Recovery with ZFS Snapshots and zrepl

A practical guide to continuously replicating ClickHouse data off-box using ZFS snapshots and zrepl — why it works, how to set it up, how to restore, and the consistency caveats nobody mentions.

September 8, 202612 min read

HAProxy vs CHproxy for ClickHouse: Which Load Balancer Should You Use?

A practical guide to load balancing ClickHouse. When HAProxy wins, when chproxy wins, minimal setup for both, and the key parameters that actually matter.

September 7, 20269 min read

A Tiny, Zero-Dependency Benchmark for ClickHouse

The whole thing is a single Python file with no dependencies — just the standard library. No clickhouse-driver, no requests, no pip install. It talks to ClickHouse over the HTTP interface (port 8123), so you can drop it on any box that can reach the server and run it.

July 1, 202611 min read

Your Code Has Branches. Why Doesn’t Your Data? ClickHouse Branching Tool

A branch is a full, writable, isolated copy of a production table — created in seconds, without duplicating the data.

June 27, 20265 min read

Nobody Buys a Database for the Audit Trail. Then the Auditor Shows Up.

Auditing ClickHouse ! That's the layer BlancoByte ClickHouse Console is built around. Here's what it actually looks like.

June 25, 20266 min read

ClickHouse Is Blazing Fast — Until It Isn’t. Here’s How to See It Coming.

ClickHouse exposes all of that — through dozens of system tables. It just doesn't give you a single place to actually see it.That gap is exactly what BlancoByte ClickHouse Console was built to close.

June 24, 20266 min read

Stop Guessing, Start Explaining – Estimate Cost Without Resource in ClickHouse

EXPLAIN is the cheapest form of observability ClickHouse offers. It runs in milliseconds, it doesn't touch the data, and it can save you from queries that would otherwise have run for hours.

May 31, 20268 min read

Introducing BlancoByte ClickHouse Console v4.0

v4 is the rebuild. Multi-user, role-based, audited, multi-cluster, with a hardened deployment, a credential vault, LDAP/AD authentication, SIEM forwarding, and native ClickHouse backup with scheduling. Almost every panel from v1 has been touched. Many are new.

May 23, 202619 min read

BlancoByte CDC Connector: Stream Your Database Changes into ClickHouse in Real Time – Part 2

The feedback pointed in a clear direction: teams wanted more control over what gets replicated, better pipeline management, and the ability to connect their own infrastructure. v1.1 delivers all of that.

May 3, 20265 min read

BlancoByte CDC Connector: Stream Your Database Changes into ClickHouse in Real Time – Part 1

BlancoByte CDC Connector is built on open-source technologies that have been battle-tested at scale:

April 25, 202612 min read

Introducing BlancoByte ClickHouse Console

Scripts for backups, a Python profiler for slow queries, a branching utility for safe testing.

April 20, 202626 min read

BlancoByte Builds a ClickHouse Profiler That Runs Anywhere

The tool reads the ClickHouse server log file line-by-line, extracts every executed query along with its execution time, rows read, bytes read, and peak memory usage, then groups structurally identical queries together and ranks them by the metric you care about most.

April 17, 202612 min read

Building a Production-Grade ClickHouse Point-in-Time Recovery Tool by BlancoByte (Full, Differential & Incremental Backup)

This is the most important concept to understand before using the tool. There are three types of backups and they behave very differently.

March 31, 202618 min read

How the BlancoByte Branching Tool Simplifies ClickHouse Database Development

In modern software development, handling data in a reliable and scalable way is essential for building stable applications. As systems grow more complex, teams need safer ways to test changes and experiment with database structures without risking production environments. One technique that has beco

March 13, 20267 min read

ClickHouse FREEZE Command: A Practical Guide to Fast Local Backups

The FREEZE command is an ALTER TABLE operation that creates a local backup of a table or a specific partition.

February 10, 20265 min read

Getting Started with ClickHouse Using clickhouse-local

What if you could run ClickHouse SQL queries without setting up a server or managing storage? That’s exactly what clickhouse-local is for.

September 5, 20253 min read

How to Ingest Data from a Kafka Topic into ClickHouse

The good news? ClickHouse provides a Kafka table engine that lets you subscribe directly to Kafka topics and pipe messages into your database efficiently. By combining Kafka with materialized views in ClickHouse, you can build a reliable ingestion pipeline that continuously transforms and stores mes

September 5, 20254 min read

Introduction to Materialized Views In ClickHouse

Materialized views aren’t just another database feature—they’re a powerful way to precompute and store results, making analytical queries lightning-fast. Let’s dive into what they are, how they differ from regular views, and why they matter.

September 5, 20255 min read

Advantages of Column Stores for Real-Time Analytics with ClickHouse

In today’s data-driven world, speed matters. Whether it’s monitoring user behavior, tracking financial transactions, or analyzing IoT signals, organizations rely on real-time insights to make critical decisions. Traditional row-based databases can struggle to deliver the performance needed at scale,

September 3, 20254 min read