Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-16

Implement Collection::insertMany()

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • 0.1.0
    • 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]
      );
      

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: