Re: Bulk Insert/Update Scenario

Поиск
Список
Период
Сортировка
От Jordan Deitch
Тема Re: Bulk Insert/Update Scenario
Дата
Msg-id CAK1UM_bUBat2jEbHxbazjjVbXFUGfj859TJkNrOB_twG7bDBnw@mail.gmail.com
обсуждение исходный текст
Ответ на Bulk Insert/Update Scenario  (Mana M <manan.gcs@gmail.com>)
Ответы Re: Bulk Insert/Update Scenario  (legrand legrand <legrand_legrand@hotmail.com>)
Re: Bulk Insert/Update Scenario  (Mana M <manan.gcs@gmail.com>)
Список pgsql-general
Hi Mana, 

A starting point would be reading about the batch upsert functionality:

You would do something like:
INSERT INTO table ON CONFLICT update... 

This operation would be atomic. You can also look into deferrable constraints such that you would perform all your insert / update operations in a transaction block and accommodate for the constraints. 

I hope this helps to get you on the right track!

Thanks,
Jordan Deitch


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

Предыдущее
От: Mana M
Дата:
Сообщение: Bulk Insert/Update Scenario
Следующее
От: legrand legrand
Дата:
Сообщение: Re: Bulk Insert/Update Scenario