Example source code for the blog post "Slow batch insert with MongoDB sharding"