News for hackers. Stuff that matters.
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.
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?

Re:Things I learnt about passkeys when building passkeybot by SahAssar on Tuesday December 23, 2025 @07:09AM (#46364651)
Yeah, I'd say that sounds fine. Since these are supposed to be used within a short time it'd also be easy to cleanup unused ones more then 5mins old or so.