Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Uid] add support for Ulid#36042

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:masterfromnicolas-grekas:ulid
Mar 14, 2020
Merged

Conversation

nicolas-grekas
Copy link
Member

QA
Branch?master
Bug fix?no
New feature?yes
Deprecations?no
Tickets-
LicenseMIT
Doc PR-

ULIDs are useful alternatives to UUIDs.

Fromhttps://github.com/ulid/spec:

UUID can be suboptimal for many use-cases because:

  • It isn't the most character efficient way of encoding 128 bits of randomness
  • UUID v1/v2 is impractical in many environments, as it requires access to a unique, stable MAC address
  • UUID v3/v5 requires a unique seed and produces randomly distributed IDs, which can cause fragmentation in many data structures
  • UUID v4 provides no other information than randomness which can cause fragmentation in many data structures

Instead, herein is proposed ULID:

  • 128-bit compatibility with UUID
  • 1.21e+24 unique ULIDs per millisecond
  • Lexicographically sortable!
  • Canonically encoded as a 26 character string, as opposed to the 36 character UUID
  • Uses Crockford's base32 for better efficiency and readability (5 bits per character)
  • Case insensitive
  • No special characters (URL safe)
  • Monotonic sort order (correctly detects and handles the same millisecond)

tgalopin, maxhelias, gmorel, zmitic, jakzal, jeremyFreeAgent, Pierstoval, kunicmarko20, HeahDude, asamats, and 6 more reacted with heart emojiro0NL, jeremyFreeAgent, Pierstoval, asamats, yceruto, jdreesen, javiereguiluz, and hason reacted with rocket emoji
@nicolas-grekas
Copy link
MemberAuthor

Green

@fabpot
Copy link
Member

Thank you@nicolas-grekas.

@fabpotfabpot merged commit42c76d7 intosymfony:masterMar 14, 2020
@nicolas-grekasnicolas-grekas deleted the ulid branchMarch 14, 2020 13:57
@nicolas-grekasnicolas-grekas modified the milestones:next,5.1May 4, 2020
@fabpotfabpot mentioned this pull requestMay 5, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@fabpotfabpotfabpot approved these changes

@javiereguiluzjaviereguiluzjaviereguiluz approved these changes

@lyrixxlyrixxlyrixx approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
5.1
Development

Successfully merging this pull request may close these issues.

5 participants
@nicolas-grekas@fabpot@javiereguiluz@lyrixx@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp