Re: Running update in chunks?
Tim Uckun <timuckun@gmail.com>
From: Tim Uckun <timuckun@gmail.com>
To: Richard Huxton <dev@archonet.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Date: 2013-01-21T10:30:06Z
Lists: pgsql-general
> Can you try a couple of things just to check timings. Probably worth EXPLAIN > ANALYSE. > > SELECT count(*) FROM cars.imports i JOIN cars.models md ON i.model_id = > md.id; Takes about 300 ms > > CREATE TEMP TABLE tt AS SELECT i.* FROM cars.imports i JOIN cars.models md > ON i.model_id = md.id; Takes about 300 ms > > Now the first one should take half a second judging by your previous > explain. If the second one takes 50 seconds too then that's just the limit > of your SSD's write. If it's much faster then something else is happening.