Re:Things I learnt about passkeys when building passkeybot
by esseph on Monday December 22, 2025 @06:02PM
(#46360249)
If you can, switch to uuid v7 if you're indexing by that id. Performance improvement while still not being sequential IDs.
[ Parent
| on HN ]
Re:Things I learnt about passkeys when building passkeybot
by SahAssar on Monday December 22, 2025 @06:16PM
(#46360392)
For this sort of use-case v4 might be better. It has more randomness and you will probably delete the old ids as soon as they are used anyway, so the indexed space will probably be small.
Re:Things I learnt about passkeys when building passkeybot
by esseph on Tuesday December 23, 2025 @01:21AM
(#46362923)
How small is small, and how often is that state checked?
I guess it's probably not tracking tons of IDs like tracking packet state through a network device.
Even a few million (max) UUIDv4 is probably fine then, yeah?