Skip to content

Should add some indexs to speed up #9

@kunzhipeng

Description

@kunzhipeng

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)])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions