Make it possible to use read-only transactions #1245
Labels
api: firestore
Issues related to the googleapis/nodejs-firestore API.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
The runTransaction call creates a read-write transaction that acquires locks on the data. This is a problem when the transaction is both long-lived (so would hold locks for a long time) and reads a lot of data (or data which is frequently written), as it will delay concurrent writes.
The Firestore API offers read-only transactions as an alternative. These do not acquire locks and do not impact writes.
A plausible way to add these is to add a 'read-only' option to runTransaction, or to add a runReadOnlyTransaction call.
The text was updated successfully, but these errors were encountered: