Pymongo bulk inserts
mongodb, pymongo, python
Solution
Check out the documentation for bulk inserts in PyMongo. You just pass a list of dicts to insert(). If the list is empty, PyMongo raises an exception, as you've observed.
Problem
I am trying to insert documents in bulk. But it doesn't insert more than 84 documents during bulk insert. Gives me this error: ``` in insert pymongo.errors.InvalidOperation: cannot do an empty bulk insert ``` Is it possible to do batch inserts, like inserting 50 documents per insert?