Mongodb – is having sub-documents equivalent to having a collection of N x M documnts?
Let's suppose a collection has N documents and each document has an array field with M subdocuments. For a query that uses a $elemMatch on the field with the M subdocuments to filter and findMany documents of this collection, would…