Hacker News new | ask | show | jobs
by mannyv 899 days ago
Yeah, statistical things like that need to be pre-calculated and cached for best performance.

When you first get stuff working doing a query is easier and faster. At some point you remove it and move to counters that are updated via your data pipe.