Transactions
Speaking of transactions, Cloud Spanner offers two types of transaction: read-only transactions and read-write transactions. Read-only transactions are non-locking operations and so do not impede the performance of other concurrent operations. A read-only transaction simply ensures that the data being read is not updated from the observer's point of view over the course of one or many reads. If any data is updated during a read-only transaction, the transaction will simply ignore those updates.
Read-write transactions are locking operations, meaning concurrent operations on the same data will be blocked until the transaction is committed. Read-write operations support rollbacks, meaning partial updates are not a concern. Because ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access