php - Why multiple inserts do not work? -
I try to populate my mongodb collection with large data for testing performance I am I first tried to do it in a loop like this:
while ($ i <= 1000000) {$ collection-> Insert ($ _ POST); } And then I tried this way:
$ collection-> Insert ($ _ POST); $ COLLECTION- & gt; Insert ($ _ post); ... $ collection-> Insert ($ _ POST); But only one row was added in both cases. Why is it like this?
Comments
Post a Comment