Skip to content

Implement UUID v7 - time-ordered UUIDs#356

Merged
thekid merged 1 commit intoxp-framework:mainfrom
thekid:feature/uuid-v7
Feb 1, 2026
Merged

Implement UUID v7 - time-ordered UUIDs#356
thekid merged 1 commit intoxp-framework:mainfrom
thekid:feature/uuid-v7

Conversation

@thekid
Copy link
Member

@thekid thekid commented Jan 31, 2026

UUIDv7: A recent standard, UUIDv7 is time-ordered, meaning the generated values follow a chronological order, enhancing their predictability for ordered storage.

Source: https://medium.com/@ciro-gomes-dev/uuidv4-vs-uuidv7-vs-ulid-choosing-the-right-identifier-for-database-performance-1f7d1a0fe0ba

Example

use util\UUID;

$uuid= UUID::timeOrderedUUID();  // e.g. "{019bf452-f817-7d8d-a753-45e8da321460}"

See also

@thekid thekid merged commit 9f1c51b into xp-framework:main Feb 1, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant