Re: Running update in chunks?

Поиск
Список
Период
Сортировка
От Tim Uckun
Тема Re: Running update in chunks?
Дата
Msg-id CAGuHJrOKGPi7wrJocUgj+8B2U5abJW9OdyDrfC0j7goFOu_Fhw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Running update in chunks?  (Richard Huxton <dev@archonet.com>)
Ответы Re: Running update in chunks?
Список 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 по дате отправления:

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