Skip to content
This repository was archived by the owner on Nov 6, 2019. It is now read-only.
This repository was archived by the owner on Nov 6, 2019. It is now read-only.

Don't rely on _id order #25

@kof

Description

@kof

Originally from #24

_id's are currently created on the publisher machines, so there is no guarantee that order of _ids corresponds the natural inserts order.

We rely on _id order when using latest doc id in Channel#listen every time we create a cursor.

It is possible that there are documents inserted before this one, for which we have triggered an event already, but its _id is higher in the sort order then the one from "latest".

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