You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add a short explanation of Batches vs Transactions ? #711
I think it'd be pretty useful to explain what the difference is between these two... doesn't need to be long, but something explaining when to use each, with links off to the datastore API documentation explaining in more detail.
Batches can safely be used never by a user. Transaction maps to a concept outside of our library. I think a simpler solution could be just to put the Batches section below the fold somehow. WDYT?
A Batch powers get() / put() / delete() under the covers and it turns out most of the features needed to do this are needed for a Transaction (essentially everything except making the begin_transaction request and sending the transaction ID in the request),
@jgeewax the point of Batch is to allow the developer to control the number of API requests, without the overhead / semantics of a transaction. E.g., this generates only one request, without a transaction being created / finished:
I think we can close this out. @jgeewax Feel free to re-open if you still think its an issue. Otherwise our practice of "autodoc" the things will be the standard.
Aside: We put connection module autodocs in the same file as client modules since users don't likely need to know about connection stuff. We could put Batch with Transaction if it were really an issue.
Activity
dhermes commentedon Mar 12, 2015
Batchescan safely be used never by a user.Transactionmaps to a concept outside of our library. I think a simpler solution could be just to put theBatchessection below the fold somehow. WDYT?A
Batchpowersget() / put() / delete()under the covers and it turns out most of the features needed to do this are needed for aTransaction(essentially everything except making thebegin_transactionrequest and sending the transaction ID in the request),jgeewax commentedon Mar 13, 2015
OK so you're saying we don't ever have a good reason to use a Batch by itself? If so, should we remove it's page from the docs?
tseaver commentedon Mar 13, 2015
@jgeewax the point of
Batchis to allow the developer to control the number of API requests, without the overhead / semantics of a transaction. E.g., this generates only one request, without a transaction being created / finished:This might be a "power user" feature, but it should be documented.
dhermes commentedon Aug 28, 2015
I think we can close this out. @jgeewax Feel free to re-open if you still think its an issue. Otherwise our practice of "autodoc" the things will be the standard.
Aside: We put
connectionmodule autodocs in the same file asclientmodules since users don't likely need to know aboutconnectionstuff. We could putBatchwithTransactionif it were really an issue.build(deps): bump certifi from 2022.9.24 to 2022.12.7 in /synthtool/g…
chore(deps): update dependency google-api-core to v1.24.1 (#711)
chore: update environment test submodule (#711)
chore: add missing import in owlbot.py (#711)
chore: update environment test submodule (#711)
build: fix warnings in docgen (#711)
chore: release 2.21.0 (#753)
chore(deps): update dependency typing-extensions to v4.14.1 (#711)
chore(deps): update dependency pytest to v7 (#711)