| От | Merlin Moncure |
|---|---|
| Тема | Re: long transaction |
| Дата | |
| Msg-id | b42b73150808120956ie421dbcl2c24d486c8793eb9@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: long transaction ("Sabin Coanda" <sabin.coanda@deuromedia.ro>) |
| Список | pgsql-performance |
On Tue, Aug 12, 2008 at 4:17 AM, Sabin Coanda <sabin.coanda@deuromedia.ro> wrote: >> long running transactions can be evil. is there a reason why this has >> to run in a single transaction? > > This single transaction is used to import new information in a database. I > need it because the database cannot be disconected from the users, and the > whole new data has to be consistently. There are different constraints that > are checked during the import. have you considered importing to a temporary 'holding' table with copy, then doing 'big' sql statements on it to check constraints, etc? merlin
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера