SpaceIterator always returning the whole results even if we specify the batchSize. How to get the results 500 records for each request.
SpaceDocument sampleSpaceDoc = new SpaceDocument("space_doc");
SpaceIterator<SpaceDocument> iterator =
gigaSpace.iterator(sampleSpaceDoc, new SpaceIteratorConfiguration().setBatchSize(500).setIteratorType(SpaceIteratorType.CURSOR).setReadModifiers(ReadModifiers.DIRTY_READ).setMaxInactiveDuration(Duration.ofMinutes(5)));
In above code, even if we set the batchSize
, its always returning whole results set not first 500 records.
It would be great any pointers or suggestions to proceed further.