Re: When to use PARTITION BY HASH?

Поиск
Список
Период
Сортировка
От Ron
Тема Re: When to use PARTITION BY HASH?
Дата
Msg-id fa380e6c-301b-3db4-4ce3-75f7af660637@gmail.com
обсуждение исходный текст
Ответ на Re: When to use PARTITION BY HASH?  (Jeff Janes <jeff.janes@gmail.com>)
Список pgsql-general
On 6/5/20 8:51 AM, Jeff Janes wrote:
On Fri, Jun 5, 2020 at 6:12 AM Oleksandr Shulgin <oleksandr.shulgin@zalando.de> wrote:
[snip]
For a bulk load you'd likely want to go with an empty partition w/o indexes and build them later, after loading the tuples. 

That only works if the bulk load is starting from zero.  If you are adding a million rows to something that already has 100 million, you would probably spend more time rebuilding the indexes than you saved by dropping them.

It's too bad that Postgres doesn't have "deferred index updates" during bulk (but still transactional) loads, where the index nodes are updated en masse every "commit count" number of rows.  That's really useful in this situation, but I've only seen it in one legacy RDBMS.

--
Angular momentum makes the world go 'round.

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

Предыдущее
От: Tim Cross
Дата:
Сообщение: Re: Should I enforce ssl/local socket use?
Следующее
От: Wenjun Che
Дата:
Сообщение: Question on full vacuum clearing waste space