ClickHouse Generates an Unbounded Number Stream in Constant Memory
numbers() is a generator that iota-fills one column per block and keeps only a counter in memory.
All posts published on this site.
Everything published here, newest first.
numbers() is a generator that iota-fills one column per block and keeps only a counter in memory.
Incremental backups reuse the base backup’s bytes: only the suffix after a verified shared prefix is uploaded, and the restore concatenates the two halves.
Keeper puts a digest of its node tree inside every Raft log entry; a follower whose recomputed digest disagrees with the leader’s kills itself.
ClickHouse’s CompactArray stores sub-byte values in a bitset and reads them through an unaligned 16-bit window, so a HyperLogLog rank costs 5 or 6 bits per bucket.
ClickHouse matches ORDER BY against the sorting key and reads MergeTree parts in key order instead of sorting everything.