Wednesday, 4 January 2017

NodeJS script inserting inconsistent number of documents into a collection but I don't know why...

I wrote a script to parse XML and then insert documents into a collection. After solving a lot of asynchronous issues and making it act more synchronous. When I run the script, I can see the number of elements the XML file(s) have so I know theoretically how many documents there should be but for some reason sometimes it inserts x documents and sometimes it inserts y (with seemingly no pattern what so ever). Wondering if anyone's had this problem before or if it is something specific to my code that I'm doing wrong...?

Submitted January 05, 2017 at 05:46AM by DTheDeveloper

No comments:

Post a Comment