Re: Running update in chunks? - Mailing list pgsql-general

From Tim Uckun
Subject Re: Running update in chunks?
Date
Msg-id CAGuHJrMHd+EACfUzbUuhHZs=wQzNbiQYyTLMBi8yQ=JAW4wLHQ@mail.gmail.com
Whole thread Raw
In response to Re: Running update in chunks?  (Richard Huxton <dev@archonet.com>)
Responses Re: Running update in chunks?
Re: Running update in chunks?
Re: Running update in chunks?
Re: Running update in chunks?
Re: Running update in chunks?
List pgsql-general
>
> That suggests (to me, at least) that it is related to index updating. Again,
> your GIN index seems primary candidate.
>
> Try running iostat (I think that's available on a Mac) with/without the
> fillfactor and with/without the GIN index while you do the updates. It's
> possible your SSD is just behaving oddly under stress.
>


I dropped the index and the numbers shot up tenfold or more.  I don't
know why postgres feels the need to update the GIN index on the hstore
field when I am only updating an integer field but it looks like I
need to split the hstore into a different table.


--
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 by date:

Previous
From: Jan Strube
Date:
Subject: Prevent out of memory errors by reducing work_mem?
Next
From: Scott Marlowe
Date:
Subject: Re: seeking SQL book recommendation