ClickHouse's SLRU Cache Gives Hot Entries a Second Queue
ClickHouse’s default cache policy is SLRU, not LRU: entries hit twice are promoted to a protected queue that a sequential scan cannot flush.
All posts published on this site.
Everything published here, newest first.
ClickHouse’s default cache policy is SLRU, not LRU: entries hit twice are promoted to a protected queue that a sequential scan cannot flush.
ClickHouse hashes each async insert into a per-key buffer and flushes it on size, count, or an adaptive deadline.
ClickHouse resolves an INSERT’s columns by name into a sample block, then squashes, dedup-stamps and fans the data out to the sinks.
ClickHouse scores each projection by the marks it must read, including the parts it cannot serve, and picks the cheapest.
A RECOMPRESS TTL rewrites a whole part with a new codec once all of its rows have expired.