Skip to content

Entry IDs aren't guaranteed to be unique #2273

@rianhunter

Description

@rianhunter

Basically as title,

in the entrytmp table, ids are computed by adding the current usecs to the entry date. this is not guaranteed to be unique.

when adding to the entry table from the entrytmp table, ids are computed from the max id of the entrytmp table, and incremented. On two runs with the same max(id) - count(*) expression, you will have an id collision.

The entrytmp table seems to be used to get a date-oriented ordering for the id column. Why is this necessary? Why not order by the date columne in listWhereRaw() and sqlListWhere()?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions