Skip to content

Performance improvement: Use UUIDv7 from google/uuid instead of UUIDv4 #4665

@binaryfire

Description

@binaryfire

Description

Hi guys,

From what I can see, the current UUID format being used is UUIDv4. The google/uuid package also supports UUIDv7s. UUIDv7 is time ordered which makes it much faster to query.

This will make a big difference when storing received notifications / events in databases. Here are some UUIDv4 vs UUIDv7 benchmarks with Postgres:

There's no downsides at all to switching, it's fully backwards compatible and being able to store events with UUIDv7 ids instead of UUIDv4s will be beneficial to everyone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions