ClickHouse dictionary vs JOIN vs IN in 26.11: three lookups that now end in the same key set
In ClickHouse 26.11 a JOIN prunes granules with an exact IN set of up to 10,000 keys, and dictGet in WHERE turns into IN. A hashed dictionary costs 32–64 B per key per attribute.