/**
  * Insert the provided products documents into MongoDB
  * with the batch insert method
  *
  * @param array $docs
  */
 protected function insertDocuments($docs)
 {
     $this->collection->batchInsert($docs);
     $productsCount = count($docs);
     for ($i = 0; $i < $productsCount; $i++) {
         $this->stepExecution->incrementSummaryInfo('create');
     }
 }
    /** @override */
    public function batchInsert(array &$a, array $options = array())
    {
        $this->log(array(
            'batchInsert' => true,
            'num' => count($a),
            'data' => $a,
            'options' => $options
        ));

        return parent::batchInsert($a, $options);
    }
 /**
  * Insert the provided products documents into MongoDB
  * with the batch insert method
  *
  * @param array $docs
  */
 protected function insertDocuments($docs)
 {
     $this->collection->batchInsert($docs);
 }