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

From Tim Uckun
Subject Re: Running update in chunks?
Date
Msg-id CAGuHJrOKGPi7wrJocUgj+8B2U5abJW9OdyDrfC0j7goFOu_Fhw@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?  (Richard Huxton <dev@archonet.com>)
List 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.


pgsql-general by date:

Previous
From: Raghavendra
Date:
Subject: Re: pg_Restore
Next
From: Richard Huxton
Date:
Subject: Re: Running update in chunks?