Hacker News new | ask | show | jobs
by Detrus 3790 days ago
In your #2 example, you'd have to pass the semantic meaning to it somehow. It doesn't look like a simple document database. There is logic and semantics. There is a total cost fact, which you'd update by saying total cost excludes employees that are "is:Quit" "is:Fired" etc. All the facts and queries on top of it would then work.

This is a similar idea and there is a long elaboration https://www.youtube.com/watch?v=voG5-15aDu4