mongodb bulkwrite limit?

by Thomasc   Last Updated January 12, 2018 21:06 PM

I'm attempting to use php mongodb\driver options to do a bulkwrite to the database. I've created the db connection and $bulk variable $bulk = new MongoDB\Driver\BulkWrite(['ordered' => false]); I add inserts to $bulk to the toon of around 100,000 documents. I then call executeBulkWrite to add those documents to MongoDB. That works well. I then need to re-initialize $bulk but i'm not certain as to how. There is "db.collection.initializeUnorderedBulkOp()" but that appears to be how the old drivers would initialize it and doesn't work with the new driver system. Can anyone help me resolve this? thanks

Related Questions

buld insert csv file to sqlServer error

Updated July 19, 2018 06:06 AM

PHPMyAdmin very slow inserts

Updated July 11, 2016 08:02 AM