title: mongodb bulk updates/inserts
body: <p>We run mongo-2.4 via heroku/mongolab which does not support 2.6 for production</p>
  
  <p><a href="http://docs.mongolab.com/ops/#version-mgmt" rel="nofollow">http://docs.mongolab.com/ops/#version-mgmt</a></p>
  
  <p>One of my use, I wanted to do bulk inserts using java-driver:</p>
  
  <pre><code>// 1. Ordered bulk operation
  BulkWriteOperation builder = coll.initializeOrderedBulkOperation();
  builder.insert(new BasicDBObject("_id", 1));
  builder.insert(new BasicDBObject("_id", 2));
  builder.insert(new BasicDBObject("_id", 3));
  
  BulkWriteResult result = builder.execute();
  </code></pre>
  
  <p>However, I can not upgrade prod to 2.6 and 2.4 does not support bulk inserts.</p>
  
  <p>I could have <code>upto many thousands inserts</code> to mongo <code>at any given time</code>.</p>
  
  <p>If I insert 1 document at a time, there could be performance/scaling issues.</p>
  
  <p>Is there an <code>alternate way</code> of doing bulk inserts/<strong>upserts</strong>/<strong>updates</strong> in MONGODB in 2.4</p>