jstests/sharding/sharded_limit_batchsize.js
/**
 * Test the correctness of queries with sort and batchSize on a sharded cluster,
 * running the queries against collection 'coll'.
 */
Test the correctness of queries with sort and batchSize on a sharded cluster,
running the queries against collection 'coll'.
Test the correctness of queries with sort and batchSize on a sharded cluster running the queries against collection ' coll ' .
function testBatchSize(coll) {
    assert.eq(20, coll.find().sort({x: 1}).batchSize(3).itcount());
    assert.eq(15, coll.find().sort({x: 1}).batchSize(3).skip(5).itcount());
}
function testBatchSize ( coll ) { assert . eq ( 20 , coll . find ( ) . sort ( { x : 1 } ) . batchSize ( 3 ) . itcount ( ) ) ; assert . eq ( 15 , coll . find ( ) . sort ( { x : 1 } ) . batchSize ( 3 ) . skip ( 5 ) . itcount ( ) ) ; }
Test the correctness of queries with sort and batchSize on a sharded cluster,
 running the queries against collection 'coll'.
Test the correctness of queries with sort and batchSize on a sharded cluster running the queries against collection ' coll ' .
//Roll the cursor over the second batch and make sure it's correctly sized