Skip to content

_id generation for large chuncks of data generates duplicates ids #439

Description

@ErikPillon

The current _id generation strategy is not safe across restarts because it relies solely on the current millisecond and an in-memory counter that resets when the process exits.

A robust fix would be to stop overriding MongoDB's _id entirely, or derive _id deterministically from _key if the project truly needs a custom primary key.

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