Implement Collection::insertMany()

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Won't Fix
    • Priority: Major - P3
    • 0.1.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • 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:
              Hannes Magnusson (Inactive)
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: