11 ms·
Seems like you are choosing the worst of both cases then. If you are effectively using uuid as a slug there are better choices out there that take less space t
by wstuartcl 4y ago
Seems like you are choosing the worst of both cases then. If you are effectively using uuid as a slug there are better choices out there that take less space to encode store and index.
- ei8ths 4y agoI need to keep it unique, don't uuid's stay unique? I'm all ears to changing it for a smaller size.
- wstuartcl 4y agohttps://github.com/Jakeii/nanoid-postgres https://github.com/Jakeii/nanoid-postgres is an example of one way just pick a length that has enough space for your projected maxcount and ensure unique on the schema/index.