Have you seen that when you want to query from
If you enter the above command in
#mongodb #mongo #shellBatchSize #limit
MongoDB in shell it just prints the last 10 records and prompts to enter it in order to see more? Well in MongoDB shell you can issue the below command to say how many records to return:DBQuery.shellBatchSize = 3000
If you enter the above command in
MongoDB shell and use find to query a collection that has more than 3000 documents, 3000 documents will be returned at once.#mongodb #mongo #shellBatchSize #limit