javascript - Nodejs app stuck -
i have application must load lot of data database.
a lot of objects in database has child objects. , works lot of async loops.
async.eachseries(....., function (item, cb) { .... });
it's works fine, have around 1000 objects in processing each second.
this functional works in background. app stuck , http server not response.
i think maybe need add delay background data processing fix it?
i think problem caused doing jobs in series , when job1
not done, job2
won't start , app stuck here. try doing time consuming jobs in parallel way instead.
Comments
Post a Comment