Re: Running update in chunks?

Поиск
Список
Период
Сортировка
От Tim Uckun
Тема Re: Running update in chunks?
Дата
Msg-id CAGuHJrPQMByo86ney5KbyiJ2RNyrvH_sGeXikP=-ZU23krPd1Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Running update in chunks?  ("Kevin Grittner" <kgrittn@mail.com>)
Список pgsql-general
> I agree that seems like the most likely cause. Each update to the
> row holding the hstore column requires adding new index entries for
> all the hstore elements, and autovacuum will need to clean up the
> old ones in the background. The best solution would be to either
> normalize the data instead of using hstore, or move the hstore to a
> separate table which is referenced by some sort of ID from the
> frequently-updated table.


That's very interesting. I can certainly split up the table, no big
deal there.  So would the index be redone even if I am not updating
the hstore field itself?


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


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

Предыдущее
От: Tim Uckun
Дата:
Сообщение: Re: Running update in chunks?
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Running update in chunks?