-
Type: Bug
-
Resolution: Gone away
-
Priority: Critical - P2
-
None
-
Affects Version/s: 3.1.12
-
Component/s: Core
-
Empty show more show less
I have this code snippet but is taking too much to execute the query, but executing in the mongo console is executing in an acceptable time
for (const productId of productsGrouppedByCategory[group]) { const _id = Types.ObjectId(productId) ids.push(_id); const products = collection.find({ '_id': { '$in': ids }}, {'projection': {'priceHistory': 0}}).toArray() result.push(products) }
I already updated the poolSize value, but nothing happens, it takes about 10 seconds to execute this query, when in the mongo console takes 4 seconds.