Re: UUID or auto-increment

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: UUID or auto-increment
Дата
Msg-id 20200810165332.GV29590@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: UUID or auto-increment  (Ron <ronljohnsonjr@gmail.com>)
Ответы Re: UUID or auto-increment  (Israel Brewster <ijbrewster@alaska.edu>)
Re: UUID or auto-increment  (Rob Sargent <robjsargent@gmail.com>)
Список pgsql-general
Greeitngs,

* Ron (ronljohnsonjr@gmail.com) wrote:
> On 8/10/20 11:38 AM, Ravi Krishna wrote:
> >Finally UUID results in write amplication in wal logs.  Keep that in mind
> >if your app does lot of writes.
>
> Because UUID is 32 bytes, while SERIAL is 4 bytes?

and because it's random and so will touch a lot more pages when you're
using it...

Avoid UUIDs if you can- map them to something more sensible internally
if you have to deal with them.

Thanks,

Stephen

Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: Ron
Дата:
Сообщение: Re: UUID or auto-increment
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: UUID or auto-increment