Search code examples
mongodbperformancemetricsnosql

Best way to Bulk read Mongo DB - Is there anything like this?


What is the efficient way to read bulk data from MongoDB (version >=3.2). I am finding methods only for Bulk write.

I am working on creating metrics analyzing data that is stored in mongoDB. Since I am testing waters, my tech stack is limited to Mongo Aggregation Pipeline and Java.


Solution

  • Obviously ensuring you have the necessary indexes will ensure that the reads are efficient. As well as the native aggregation pipeline, you have mapreduce that you may be able to make use of.

    Also if you are using a replica set, you may want to set your connection to read from one of your secondary nodes, instead of your primary