Re: Change sort order on UUIDs? - Mailing list pgsql-hackers

From Gregory Stark
Subject Re: Change sort order on UUIDs?
Date
Msg-id 87ejketb6b.fsf@oxford.xeocode.com
Whole thread Raw
In response to Re: Change sort order on UUIDs?  ("Robert Wojciechowski" <robertw@expressyard.com>)
List pgsql-hackers
"Robert Wojciechowski" <robertw@expressyard.com> writes:

> That was my thinking; that it would speed up (bulk) inserts causing
> fewer page splits.

Ah, I understand better now. hm. high data density would be good for reading.
But I think the case for inserting is actually quite mixed. If you have lots
of processes trying to insert you'll actually get poorer performance because
they'll all have to get access to the same page. Worse, you'll probably have a
unique index.

> The other thing this modification does is allow ORDER BY to order by
> time when possible, which is a nice default behavior as well, yes?

I think that actually is quite a nice effect. Certainly the loss of it is one
of the big practical disadvantages of using UUIDs over a sequence.

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Gregory Stark
Date:
Subject: Re: Change sort order on UUIDs?
Next
From: mark@mark.mielke.cc
Date:
Subject: Re: Change sort order on UUIDs?