Deleting large Javascript objects when process is running out of memory
问题 I'm a novice to this kind of javascript, so I'll give a brief explanation: I have a web scraper built in Nodejs that gathers (quite a bit of) data, processes it with Cheerio (basically jQuery for Node ) creates an object then uploads it to mongoDB. It works just fine, except for on larger sites. What's appears to be happening is: I give the scraper an online store's URL to scrape Node goes to that URL and retrieves anywhere from 5,000 - 40,000 product urls to scrape For each of these new URLs