Re: Concurrency question

Поиск
Список
Период
Сортировка
От Csaba Nagy
Тема Re: Concurrency question
Дата
Msg-id 1143554177.5687.87.camel@coppola.muc.ecircle.de
обсуждение исходный текст
Ответ на Re: Concurrency question  (Simon Riggs <simon@2ndquadrant.com>)
Ответы Re: Concurrency question  ("David Welton" <davidnwelton@gmail.com>)
Список pgsql-general
> Try breaking down the A query with LIMIT/OFFSET so that it never holds
> locks for long. That way B will not wait for long, if at all, and will
> not fail.

Just as a remark, this will only work if the chunks can be processed in
separate transactions. If the whole thing is related and A must be
completely wrapped in a transaction, then the locks placed by the first
queries will still hold until the end of the transaction...

Cheers,
Csaba.



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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Concurrency question
Следующее
От: "Merlin Moncure"
Дата:
Сообщение: Re: [Bulk] General advice on database/web applications