为什么多个插件不起作用?

时间:2015-01-22 18:33:43

标签: php mongodb

我尝试使用大数据填充我的mongodb集合以测试性能。我首先尝试在这样的循环中进行:

while($i <= 1000000){
    $collection->insert($_POST);
}

然后我尝试了这种方式:

$collection->insert($_POST);
$collection->insert($_POST);
...
$collection->insert($_POST);

但在这两种情况下只添加了一行。那是为什么?

0 个答案:

没有答案