phpmongodb / phpmongodb-1

http://www.phpmongodb.org
GNU General Public License v3.0
82 stars 39 forks source link

Wait for entire text to be read #20

Open andrewyang96 opened 8 years ago

andrewyang96 commented 8 years ago

The original code took whatever string it got from $record, which was usually incomplete, and immediately tried to insert that via MongoDB command. My solution concatenates each $record into $aggRecord and then inserts the complete $aggRecord via MongoDB command.