Aggregate slow on $match $expr $in

Is there a reason for you to use expressive lookup here with $expr? Since you are doing equality you can just use regular $lookup with localField set to "inputarray".

2 Likes