Sqids (pronounced "squids") is an open-source library that lets you generate short unique identifiers from numbers. These IDs are URL-safe, can encode several numbers, and do not contain common profanity words. Read more .
This is what they look like:
ClickHouse provides built-in SQL functions for generating Sqids with default parameters. This functionality is available since ClickHouse v23.12 .
Quick encode & decode example:
SELECT sqidEncode(1, 2, 3); -- "86Rf07"
SELECT sqidDecode('86Rf07'); -- [1,2,3]
The main use of Sqids is purely visual. If you'd like to use IDs instead of numbers in your project, Sqids could be a good choice.