1
0
Fork 0

Update README.md

master
Philip O'Toole 9 years ago
parent f28c0b650e
commit 55a3cca5ae

@ -190,6 +190,8 @@ This is why, even though queries do not involve consensus, they must be processe
Due to the nature of Raft, there is a very small window (milliseconds) where a node has been disposed as leader, but has not yet changed its internal state. Therefore, even with the leader check in place, there is a very small window of time where out-of-date results could be returned. If you want to avoid even this possibility, add `verify` to the URL. This will force the node to perform an actual leadership check across the cluster, but will impact query performance. An example query follows.
curl -G 'localhost:4001/db/query?pretty&verify' --data-urlencode 'q=SELECT * FROM foo'
*See [issue 5](https://github.com/otoolep/rqlite/issues/5) for more discussion of this.*
### Transactions
Transactions are supported. To execute statements within a transaction, add `transaction` to the URL. An example of the above operation executed within a transaction is shown below.

Loading…
Cancel
Save