News for hackers. Stuff that matters.
Re:New UUID Formats – IETF Draft by paulddraper on Friday August 06, 2021 @04:52PM (#28092602)
> random sort order can really hurt performance

I've long thought it was a problem that PostgreSQL doesn't have a real clustering key like MySQL or SQL Server.

But PostgreSQL users have told me it doesn't really matter.

Re:New UUID Formats – IETF Draft by dtech on Friday August 06, 2021 @06:10PM (#28093344)
It's much less important in postgres as in some other databases, but it still hurts.

Mainly because indices have to be updated and searched all over the place with UUIDs. The locality of the data on disk itself is fine because its inserted sequential.

Re:New UUID Formats – IETF Draft by anarazel on Friday August 06, 2021 @06:17PM (#28093403)
> But PostgreSQL users have told me it doesn't really matter.

Those users were very wrong, unless they explicitly only talked about the case where the uuids are not indexed.

Re:New UUID Formats – IETF Draft by mjevans on Friday August 06, 2021 @07:47PM (#28094140)
They'd likely argue to use natural keys instead. Use the data that matters to you, index it across more than one column.
Re:New UUID Formats – IETF Draft by anarazel on Friday August 06, 2021 @08:45PM (#28094537)
For cases where one sensibly used uuids, I don't see natural keys being an alternative. What's e.g. the natural key of an order reference that should be accessible without auth, when the key shouldn't allow enumeration and that should be allocatable without a single point of coordination?