dimanche 21 septembre 2014

Efficiently access most recently accessed MongoDB entries?


Vote count:

0




I'm making a service with similar requirements to a URL shortener; I need to store a bunch of unique hashes and their corresponding strings. The tricky part is that I also need to order them by access date so that I can retrieve the last 10 accessed entries (and the next 10 after that, etc.)


Everything that I've come up with so far is grossly inefficient. What's the best way to store a queue like this?



asked 20 secs ago







Efficiently access most recently accessed MongoDB entries?

Aucun commentaire:

Enregistrer un commentaire