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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -