Hello Guys,
I am using below Environment:
Version 4.1.0-5005 Enterprise Edition (build-5005)
Couchbase .NET SDK version: 2.2.1
I have 100000 documents in my bucket which is having different types of documents.
I am using Secondary index on fields according to the query.
I am trying to fetch the data in chunks using Limit = 10 and Offset starting from 0.
I am using the below statement within the loop and changing the offset value according to the iteration.
var result = objCouchBucket.Query(query);
Now my problem is that the query response time increases as the iteration increases.
eg.
Time taken for executing CouchBaseQuery: 00:01.190 PageNo: 1
Time taken for executing CouchBaseQuery: 00:00.832 PageNo: 2
Time taken for executing CouchBaseQuery: 00:00.534 PageNo: 3
Time taken for executing CouchBaseQuery: 00:00.638 PageNo: 4
Time taken for executing CouchBaseQuery: 00:01.721 PageNo: 5
Time taken for executing CouchBaseQuery: 00:01.675 PageNo: 6
Time taken for executing CouchBaseQuery: 00:01.960 PageNo: 7
Time taken for executing CouchBaseQuery: 00:03.102 PageNo: 8
Time taken for executing CouchBaseQuery: 00:01.872 PageNo: 9
Time taken for executing CouchBaseQuery: 00:02.035 PageNo: 10
Time taken for executing CouchBaseQuery: 01:17.503 PageNo: 261
Time taken for executing CouchBaseQuery: 01:01.168 PageNo: 262
Time taken for executing CouchBaseQuery: 01:36.633 PageNo: 263
Time taken for executing CouchBaseQuery: 01:14.127 PageNo: 264
Time taken for executing CouchBaseQuery: 01:20.398 PageNo: 265
Time taken for executing CouchBaseQuery: 01:13.244 PageNo: 266
Time taken for executing CouchBaseQuery: 01:37.856 PageNo: 267
Time taken for executing CouchBaseQuery: 01:29.662 PageNo: 268
Time taken for executing CouchBaseQuery: 01:39.530 PageNo: 269
Time taken for executing CouchBaseQuery: 01:18.455 PageNo: 270
Time taken for executing CouchBaseQuery: 01:13.062 PageNo: 271
Time taken for executing CouchBaseQuery: 01:25.460 PageNo: 272
I have also tried with increasing chunk size (i.e. Limit = 100),but then also I am facing the same problem.
Can any one please help me on this.
Regards
Mukesh Raghuwanhsi