logoalt Hacker News

simianwordsyesterday at 5:41 PM2 repliesview on HN

Maybe I'm too inexperienced in this field but reading the mechanism I think this would be an obvious optimisation. Is it not?

But credit where it is due, obviously clickhouse is an industry leader.


Replies

ahofmannyesterday at 5:57 PM

Obvious solutions are often hard to do right. I bet the code that was needed to pull this off is either very complex or took a long time to write (and test). Or both.

ryanworlyesterday at 7:11 PM

This is a well-known class of optimization and the literature term is “late materialization”. It is a large set of strategies including this one. Late materialization is about as old as column stores themselves.