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.
Description
Hi guys,
From what I can see, the current UUID format being used is UUIDv4. The
google/uuidpackage 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.