Hacker News new | past | comments | ask | show | jobs | submit login

Yep, that's a solid approach, although it might be limiting to some people. Also, maybe having something like ZRANGEBYLEXSTORE would also allow caching and sorting of the results by allowing quick ZINTER etc.



Agreed on both, the algorithm proposed is not perfect as it is discrete in nature, and storing results makes a lot of sense for top-queries since this is the kind of application where 5 minutes old is "good enough" for most users.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: