|
|
|
|
|
by m11a
612 days ago
|
|
But then you’d be holding a DB connection for the entire duration of your task (which may include HTTP calls, etc). You might even do asynchronous work in parallel, which doesn’t quite work with txn locks. So the session based locks seem a bit better imo. |
|
And if you add something like pgBouncer or whatever, this should still work but a session lock would fuck things up.