What elements should I consider to determine efficiency with the MongoDB profiler?
I need to make a query with aggregations in MongoDB. I’ve already built 2 different aggregation pipelines that give me the result I need, so I have to decide which one to stick with.
I was reading the documentation and I saw that MongoDB has a built-in profiler for this purpose. So what I’ve done is run the aggregations and review the profiler results getting something like this: