A Conversational Guide to ULID (Universally Unique Alphabetically Sortable Identifier)
Previously, many people have been using UUIDs to ensure unique Id fields. However, the randomness of UUIDs makes them non-sortable. For example, you might generate a UUID starting with 47 one second, and then the next second it starts with 36. This randomness can lead to efficiency problems in databases like MySQL, which need to update multiple pages, especially when dealing with large amounts of data. Because of this issue, the concept of ULID was introduced.
Posted on Jul 5, 2023 by Amo Chen ‐ 2 min read