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 }}
This repository was archived by the owner on Sep 5, 2025. It is now read-only.
Read-only transactions are useful to increase read speed because they can circumvent the usual consensus protocol. Best effort queries can also increase read speed in read bound system. Please note that best effort requires readonly.
160
+
161
+
154
162
### Run a mutation
155
163
156
164
`Txn#mutate(Mutation)` runs a mutation. It takes in a `Mutation` object, which
@@ -185,6 +193,7 @@ mutation must be immediately committed.
185
193
awaittxn.mutate({ setJson: p, commitNow:true });
186
194
```
187
195
196
+
188
197
### Run a query
189
198
190
199
You can run a query by calling `Txn#query(string)`. You will need to pass in a
@@ -232,14 +241,6 @@ Number of people named "Alice": 1
232
241
Alice
233
242
```
234
243
235
-
Read-only and best effort queries can be called by passing ```options``` to ```Txn.query``` and ```Txn.queryWithVars```. For example:
Read-only transactions are useful to increase read speed because they can circumvent the usual consensus protocol. Best effort queries can also increase read speed in read bound system.
0 commit comments