Hi Will,
I have the same problem regarding inserting large arrays in MongoDB. As you pointed out, an array of 100,000 numbers can be inserted instantly using mongo shell, but the same array takes over a minute to be inserted in MongoDB using PyMongo! I am just using a simple test document, testdoc = {"_id":"test", "data": range(100000)}, and inserting it using the following command:
db[collection].insert(testdoc, w = 1, j = True)
Do you have any idea why it takes sooooo much longer to insert the document in Python?
Thanks,
Masoumeh