MongoDb

Bulk Loading

  • Disable balancer (when sharding)
  • Disable safe writes
  • Batch load in bulks
  • Verify database afterwards!
  • Verify replicas.
  • Create indexes afterwards (use background=1 to avoid locking the db)

Thanks for reading. You should follow me on Twitter.

Do you have any feedback or comments? The best place for discussion is on Reddit or Hacker News. Otherwise, email me.