Closed
Description
When querying through (Reactive)CouchbaseTemplate, should query/count methods like all()
, one()
, count()
, etc. automatically set the QueryOptions readonly to true?
In addition to providing some security in that you are not accidentally modifying data, setting this flag to true
also helps the client to more proactively retry and re-dispatch a query since then it can be sure it is idempotent.
As a result, if your query is readonly then it is a good idea to set this flag.