How can test the performance of my query

The following still has no solution to it.

It is funny because so far it is more or less the same and only thing I can say for this thread as the other one.

  1. bindedSuperAdmin:1 on collection profileModel
  2. merchantName:1 on collection tpes
  3. terminalId:1 on collection logs

Many $lookup and many $unwind are worry signs indicating a potential model or schema flaw. It is hard to tell without sample documents and some explication on the context. If the use-case is not frequent, trying to optimize might be useless.