Re: Concurrency question - Mailing list pgsql-general

From Csaba Nagy
Subject Re: Concurrency question
Date
Msg-id 1143554177.5687.87.camel@coppola.muc.ecircle.de
Whole thread Raw
In response to Re: Concurrency question  (Simon Riggs <simon@2ndquadrant.com>)
Responses Re: Concurrency question  ("David Welton" <davidnwelton@gmail.com>)
List 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 by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Concurrency question
Next
From: "Merlin Moncure"
Date:
Subject: Re: [Bulk] General advice on database/web applications