I basically have a string file and I need to query mongo to find out if they exist in our database.
So, I need to scroll through the file and request a manga with the search query using a line from the file, and then look at the results and increase some of the counters that I have.
I am trying to do this using a shell script and calling mongo using the --eval option, but it is slow. More than an hour passed and 120,000 requests did not end. I think it would be faster if I could do this in a javascript file, so it does not need to establish a connection for each request.
Thanks for any suggestions!
Karen
source
share