Im using “You are running version 4.0.0-2213 DEV Edition (build-2213).”
Let me show you this:
var result = bucket.Query<dynamic>(
new QueryRequest("SELECT q.* FROM MasterQrs as q WHERE q.type = 'IwpCumulative' AND q.period = 5 AND q.sumActual < 400 AND q.category = 'Qty'"));
and the other hand:
var iwps = bucket.Get<IWPCumulative>(data.Value.iwp);
var result = from ite in iwps.Values
where ite.Value.Type == "IwpCumulative" && ite.Value.Period == 5 && ite.Value.SumActual < 400 && ite.Value.Category = "Qty"
select ite.Value;
The first with N1QL return some documents but when I using a lot and modified the query resquest always return the same result, when I restart the couchbase service and execute I get the correct result.
When you try to return many documents and it fails, how many are you trying to return? Can you try these same queries using the Couchbase Query (CBQ) Client and see if your results are correct with it?
I am wondering if indexing has completed before you try to run your query. While Couchbase can certainly handle 100,000 documents with no issues, it still is no small number.
To help with the accuracy of this theory, can you try filling with a smaller data set or waiting a bit before querying after a flush?
Can you please use cbq and post the results of both the queries (the original and modified one) along with the queries. Also could you specify which one is correct and which isn’t ?
We can take a look at the issue once we have these details.