Db. Group03. Aggregate ([{$unwind: "$list"}, {$group: {_id: null, count: {$sum: 1}}}])
Efficiency is so touching, is there a better way
CodePudding user response:
"Mongo calculation difficulty summarized" part of this article is about the nested query solution, more performance improvements