Re: Change sort order on UUIDs?

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Change sort order on UUIDs?
Дата
Msg-id 87ejketb6b.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Re: Change sort order on UUIDs?  ("Robert Wojciechowski" <robertw@expressyard.com>)
Список 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 по дате отправления:

Предыдущее
От: Gregory Stark
Дата:
Сообщение: Re: Change sort order on UUIDs?
Следующее
От: mark@mark.mielke.cc
Дата:
Сообщение: Re: Change sort order on UUIDs?