logoalt Hacker News

koolba • today at 12:55 AM • 1 reply • view on HN

That’s pretty funny! I’ve seen optimizations like this for reporting systems where rather than taking the top N item matching filter X, they cheat by taking the top M (where M > N) items and then filter it client side to N items matching filter X.

As long as the results are enough to populate the page you don’t notice the difference and it’s usually faster as you reuse the prior ranking.

But if not, you get this exact situation.


Replies

zahlman • today at 1:51 AM

I assume the reason this is faster is because they cache for specific values of M?

➕ show 1 reply