Please attach a test project that replicates this problem. Also, specify what is in the resource? You can attach the project and the file for the resource here or in a forum PM.
While using "Call function in multi-threads" and put remove current element from resource inside the function, it will remove all resource element that has been already used in the function and not only the current element in thread.
@UserTrue Thank you for your advice. Yes, at first I tried the built in mongodb with it's module. It made me quite fast switch over to MySQL and the appropriate node.js module ;)