Re:Unexpected downsides of UUID keys in PostgreSQL
by cratermoon on Thursday June 22, 2023 @12:26PM
(#36434598)
Out of curiosity, why do your keys need time precision less than a second? Are they carrying some secondary expectations beyond uniqueness and k-sortable?
[ Parent
| on HN ]
Re:Unexpected downsides of UUID keys in PostgreSQL
by ljm on Wednesday June 28, 2023 @04:15PM
(#36511960)
Uniqueness and the context is that we were modelling a chat conversation, so the limited precision presented issues with messages occasionally appearing out of order.
That also applied to our test suite so the choice was to use KSUID but still index a timestamp for accuracy, or just use an alternative with more precision.