Re: [HACKERS] Burst in WAL size when UUID is used as PK whilefull_page_writes are enabled

Поиск
Список
Период
Сортировка
От Amit Kapila
Тема Re: [HACKERS] Burst in WAL size when UUID is used as PK whilefull_page_writes are enabled
Дата
Msg-id CAA4eK1+nYnBwy6+R0fp9yNd_0T2ACoso0gE2Sgcvp84C-Wk2Vg@mail.gmail.com
обсуждение исходный текст
Ответ на [HACKERS] Burst in WAL size when UUID is used as PK while full_page_writes areenabled  (sanyam jain <sanyamjain22@live.in>)
Ответы Re: [HACKERS] Burst in WAL size when UUID is used as PK whilefull_page_writes are enabled  (Alvaro Herrera <alvherre@2ndquadrant.com>)
[HACKERS] Re: Burst in WAL size when UUID is used as PK whilefull_page_writes are enabled  (Thomas Kellerer <spam_eater@gmx.net>)
Список pgsql-hackers
On Fri, Oct 27, 2017 at 11:26 AM, sanyam jain <sanyamjain22@live.in> wrote:
> Hi,
>
> I was reading the blog
> https://blog.2ndquadrant.com/on-the-impact-of-full-page-writes .
>
> My queries:
>
> How randomness of UUID will likely to create new leaf page in btree index?
> In my understanding as the size of UUID is 128 bits i.e. twice of BIGSERIAL
> , more number of pages will be required to store the same number of rows and
> hence there can be increase in WAL size due to FPW .
> When compared the index size in local setup UUID index is ~2x greater in
> size.
>

You might want to give a try with the hash index if you are planning
to use PG10 and your queries involve equality operations.

-- 
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] [GENERAL] Postgres 10 manual breaks links with anchors
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [HACKERS] Burst in WAL size when UUID is used as PK whilefull_page_writes are enabled