[英]MongoDB - Downside to having different documents on same collection?
What are the downsides of storing completely different documents on the same collection of MongoDB?在 MongoDB 的同一个集合上存储完全不同的文档有什么缺点?
Unlike others questions, the documents I'm referring to are not related (like parent-child).与其他问题不同,我所指的文件是不相关的(如父子)。
The motivator here is cost-reduction.这里的动机是降低成本。 Azure CosmosDB Mongo API charges and scalability are per-collection. Azure CosmosDB Mongo API 费用和可扩展性按集合计费。
If the documents are not related at all, I'd store them in completely separate collections.如果文档完全不相关,我会将它们存储在完全独立的 collections 中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.