4 ms·
I usually put multiple document types into a single collection and have a “type” field to get around this. The fields are indexed so this is efficient. To deci
by unoti 8y ago
I usually put multiple document types into a single collection and have a “type” field to get around this. The fields are indexed so this is efficient. To decide when to use a different collection I look at the scalability and other settings at the collection level, and group things that have similar needs together.
- tracker1 8y agoIf you only have a few "type" options, that may be a poorly performing index unless it's used as a secondary to a query that narrows results more.