Think/Db/Driver/Mongo.php
public function insertAll($dataList, $options = [])
    {
        if (isset($options['table'])) {
            $this->switchCollection($options['table']);
        }
        $this->model = $options['model'];
        $this->executeTimes++;
        try {
            $this->debug(true);
            $result = $this->_collection->batchInsert($dataList);
            $this->debug(false);

            return $result;
        } catch (\MongoCursorException $e) {
            E($e->getMessage());
        }
    }
public function insertAll($dataList, $options = [])
    {
        if (isset($options['table'])) {
            $this->switchCollection($options['table']);
        }
        $this->model = $options['model'];
        $this->executeTimes++;
        try {
            $this->debug(true);
            $result = $this->_collection->batchInsert($dataList);
            $this->debug(false);

            return $result;
        } catch (\MongoCursorException $e) {
            E($e->getMessage());
        }
    }
插入多条记录
@param array $dataList 数据
@param array $options 参数表达式
@return bool