title: MongoDB batch insert, document too large
body: <p>I'm trying to do a batch insert into mongodb with an array that contains about 40,000 objects.  I keep getting errors that the BSON document is too large, however if I insert each item individually, it works fine.</p>
  
  <p>Is there a limit to the total insert size or another reason why this would happen? The actual individual documents are all small.</p>
  
  <p>Thanks!</p>