Re: update from select

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: update from select
Дата
Msg-id 14485.1193683377@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: update from select  (<dev@kbsolutions.ch>)
Список pgsql-sql
<dev@kbsolutions.ch> writes:
> Hash Join  (cost=10827.45..25950.05 rows=4906 width=1191) (actual
> time=586.251..2852.691 rows=111306 loops=1)
> ...
> Total runtime: 633548.404 ms

So you're worried about the wrong thing entirely.  The query is taking
less than 3 seconds, which may be reasonable considering it's producing
111000 join rows.  The big problem is the other 630 seconds, which is
evidently update overhead.  I'm wondering if you have any triggers or
foreign keys leading to or from this table.
        regards, tom lane


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

Предыдущее
От: "Pavel Stehule"
Дата:
Сообщение: Re: update from select
Следующее
От: Gerardo Herzig
Дата:
Сообщение: puzzled by SELECT INTO