常见问题解决库 MongoDB `$lookup` + `$group` 聚合管线跑 30 秒 MongoDB pipeline 慢成狗。用 explain('executionStats')、加复合索引、`$match` 前置、`$facet` 拆并行分支。 2026/05/24 #后端 #排查