Node writes crawlers and mongdb stores data. The number of thousands of items jammed MongoDB.

for loop, hundreds of pages, 20 pieces of data per page. I don"t know if there are too many connections, so running a few lines will prompt me that I can"t connect to mongodb.

I don"t know if there is any way to solve it.

Mar.02,2021

mongodb link is enough, it doesn't seem to be a problem. There are still problems you can write into a queue to execute 20 at the same time, there are completed new tasks to join the team.

Menu