1
// minimal test to check handling of batch size when explain info is requested
2
// expected behavior is to return explain.n = total number of documents matching query
3
// batch size is also tested in another smoke test jstest/explain1.js but that test
4
// also covers the use of an indexed collection and includes a couple of test cases
7
t = db.explain_batch_size;
17
assert.eq( n , t.find( q ).count() , "A" );
18
assert.eq( n , t.find( q ).itcount() , "B" );
19
assert.eq( n , t.find( q ).batchSize(1).explain().n , "C" );