I have 100,000 records in a mongoDB collection and trying to retrieve them in a node.js application using the native driver.
I follow the example in MongoDB doc for
It looks like the problem is solved by setting a batch size in the Cursor Stream:
var stream = myCollection.find(query, fields, options).batchSize(10000).stream();