Bulk insert performance in MongoDB for large collections

后端 未结 3 1618
北海茫月
北海茫月 2020-12-15 21:48

I\'m using the BulkWriteOperation (java driver) to store data in large chunks. At first it seems to be working fine, but when the collection grows in size, the inserts can t

3条回答
  •  失恋的感觉
    2020-12-15 22:18

    You believe that the indexing does not require any document reorganisation and the way you described the index suggests that a right handed index is ok. So, indexing seems to be ruled out as an issue. You could of course - as suggested above - definitively rule this out by dropping the index and re running your bulk writes.

    Aside from indexing, I would …

    • Consider whether your disk can keep up with the volume of data you are persisting. More details on this in the Mongo docs
    • Use profiling to understand what’s happening with your writes

提交回复
热议问题