我需要在一个数组中根据另一个属性数组查找x个对象,我将使用for循环+ lodash.filter来检索列表。我想知道,既然NodeJs是单线程的,那么如何才能提高NodeJs的效率。for(let productCategory of productCategories){
let productSubset = lodash.filter(products, {product_category_id//I also want to reference the parent object here: productCategor