-
Type: Task
-
Resolution: Won't Fix
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
Bulk inserts using write commands should be done with Collection::bulkWrite() (PHP-1312). This method is only intended for inserting multiple documents via the legacy OP_INSERT protocol.
Usage example:
$collection->insertMany( // Required documents param (array of documents) [ ['x' => 1], ['x' => 2], ], // Optional named params in an associative array ['ordered' => true] );
- depends on
-
PHPLIB-27 Create write result classes
- Closed