0

Bulk insert in Mongo takes time i.e average 15 seconds to insert 10000 documents in a collection.

My System is 8 core and 16 GB RAM.

How can I reduce response time for Mongo Insertion? What mongo configurations can be done to reduce execution time?

db.getCollection('temp').insert([{id:1},{id:10000}])

Each document contain 25-30 properties. I am using jenssegers library.

Somnath Muluk
  • 55,015
  • 38
  • 216
  • 226
  • have you tried bulk-insert: http://docs.mongodb.org/manual/reference/method/Bulk.insert/#bulk-insert – Dev May 22 '15 at 07:11
  • I am familiar with java driver and client level, no idea how to do it using jenssegers-mongodb. – Dev May 22 '15 at 08:09

0 Answers0