Replaceing records

Поиск
Список
Период
Сортировка
От Alex
Тема Replaceing records
Дата
Msg-id 3F56F117.3080006@meerkatsoft.com
обсуждение исходный текст
Ответы Re: Replaceing records
Список pgsql-general
Hi,
MySQL has a nice feature that allows to call a replace rather insert
which will attempt to insert if record not present and replace if it does.

Is there any similar feature ?

Currently I run a select prior to any insert and then update or insert
depending on the result of the select. The problem here is that I just
doubled the queries. Doing so on a table with 5Mio rows and on 100k
inserts will take time and I would like to have an efficient way of
doing it.

Any ideas ?
Thanks
Alex



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