Poor lookup aggregation performance

前端 未结 4 1323
臣服心动
臣服心动 2020-12-03 00:05

I have two collections

Posts:

{
    \"_Id\": \"1\",
    \"_PostTypeId\": \"1\",
    \"_AcceptedAnswerId\": \"192\",
    \"_CreationDate\": \"2012-02-         


        
4条回答
  •  醉酒成梦
    2020-12-03 00:34

    First use $match then $lookup. $match filter the rows need to be examined to $lookup. It's efficient.

提交回复
热议问题