MERGE: performance advices

Поиск
Список
Период
Сортировка
От Ivan Sergio Borgonovo
Тема MERGE: performance advices
Дата
Msg-id 20080902131934.473dc97f@dawn.webthatworks.it
обсуждение исходный текст
Ответы Re: MERGE: performance advices  (Gregory Stark <stark@enterprisedb.com>)
Re: MERGE: performance advices  ("Richard Broersma" <richard.broersma@gmail.com>)
Список pgsql-general
I need to merge 2 tables:

update d set c1=s.c1, c2=s.c2... from s where d.pk=s.pk;
insert into d (pk, c1, c2, ...) select pk, c1, c2, c3 from s
  where s.pk not in (select pk from d);

Any strategy to make it faster? Including modifying postgres.conf
temporary?

Considering I've no concurrency problems. The tables I'm dealing
with are "read only" for everything else other than the merge
process.

thanks

--
Ivan Sergio Borgonovo
http://www.webthatworks.it


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

Предыдущее
От: tfinneid@student.matnat.uio.no
Дата:
Сообщение: Re: plpgsql returning resultset
Следующее
От: Raymond O'Donnell
Дата:
Сообщение: Re: plpgsql returning resultset