My Dart Bucket has 35 millions documents.
My C# code is below. I am led to believe the extension method UseStreaming(true) will allow the foreach loop to continue to iterate thru all 35 million records. I have a counter, which on termination has the value 31, 048 instead of 35,000,000. Have I missed out something?
ulong count = 0;
var queryRequest = new QueryRequest().Statement("SELECT d.tradeData.id FROM Dart d).UseStreaming(true);
using (var result = bucket.Query<dynamic>(queryRequest))
{
foreach (var doc in result)
{
++count;
}
}