View Single Post

   
  #8 (permalink)  
Old 04-12-2008, 10:07 AM
Gregory Stark
 
Posts: n/a
Default Re: Change sort order on UUIDs?

"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


---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Reply With Quote