chilts/mongodb-queue

Bad `get()` performance with many jobs

Opened this issue · 0 comments

I know this library is no longer maintained. We've moved onto our own fork, but just documenting this here because we spent a day hunting down this performance issue.

This library has bad get() performance when there are lots of queued jobs.

This is because:

The trivial fix is to change it to sort by visible, which is in the index and should give similar (if not better?) results, presenting the job that was made visible first (as opposed to the job that was created first).