Re: long transaction

Поиск
Список
Период
Сортировка
От 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 по дате отправления:

Предыдущее
От: Mark Mielke
Дата:
Сообщение: Re: Using PK value as a String
Следующее
От: "H. Hall"
Дата:
Сообщение: Re: Using PK value as a String