Running the generateKeywordIdeas function spikes the memory usage on my Heroku worker dynos by 200MB(next js). This is a problem because it exceed out 500mb limit and worst case memory leaks. I've tried manually dereferencing keywordPlanIdeaService after using it, but it doesn't help reduce the memory spikes.
Running the generateKeywordIdeas function spikes the memory usage on my Heroku worker dynos by 200MB(next js). This is a problem because it exceed out 500mb limit and worst case memory leaks. I've tried manually dereferencing keywordPlanIdeaService after using it, but it doesn't help reduce the memory spikes.