Couchbase N1QL Java "stale = false"

时间:2015-09-14 15:31:44

标签: java indexing couchbase n1ql

I'm making a query where I want to set the consistency of it in this way:

ParametrizedQuery query = Query.parametrized(queryString, JsonArray.empty(), QueryParams.build().consistency(ScanConsistency.REQUEST_PLUS));

Note how that I want to set Scanconsistency.REQUEST_PLUS, but when I make:

 int count = bucket.query(query).allRows().size();

the execution never ends.

Any idea...? Thanks in advance

PS: The query i'm using is: "select * from default where id >=4"

0 个答案:

没有答案