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.  



edited by: stefs at Monday, July 8, 2024, 9:01:21 AM Coordinated Universal Time


view