You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's very slow when pull tasks via next(), finally i find there is no any index.
After i added following indexs, it's fast now.
collection.ensure_index([('priority', ASCENDING)])
collection.ensure_index([('locked_by', ASCENDING), ('locked_at', ASCENDING), ('attempts', ASCENDING)])
collection.ensure_index([('_id', ASCENDING), ('locked_by', ASCENDING)])
The text was updated successfully, but these errors were encountered:
It's very slow when pull tasks via next(), finally i find there is no any index.
After i added following indexs, it's fast now.
collection.ensure_index([('priority', ASCENDING)])
collection.ensure_index([('locked_by', ASCENDING), ('locked_at', ASCENDING), ('attempts', ASCENDING)])
collection.ensure_index([('_id', ASCENDING), ('locked_by', ASCENDING)])
The text was updated successfully, but these errors were encountered: