blog-2024-07-02

via [PostgreSQL and UUID as primary key](https://maciejwalkowiak.com/blog/postgres-uuid-primary-key/) i stumbled upon [TSID Generator](https://github.com/vladmihalcea/hypersistence-tsid), which looks interesting:

> A Java library for generating Time-Sorted Unique Identifiers (TSID).  
> ...  
> In summary:  
>   
> * Sorted by generation time;  
> * It can be stored as an integer of 64 bits;  
> * It can be stored as a string of 13 chars;  
> * String format is encoded to Crockford's base32;  
> * String format is URL safe, is case insensitive, and has no hyphens;  
> * Shorter than UUID, ULID and KSUID.  


also, from the comments: https://sqids.org/kotlin

edited by: stefs at Monday, July 8, 2024, 10:09:05 AM Coordinated Universal Time


view