简体   繁体   English

文档存储数据库和连接的域

[英]Documents store database and connected domain

Consider this picture: 考虑这张照片:

文档存储,非规范化模型

The book says documents store database struggle with highly connected domains because "relationships between aggregates aren't firstclass citizens in the data model, most aggregate stores furnish only the insides of aggregates with structure, in the form of nested maps. " . 该书说,文档存储数据库要与高度连接的域作斗争,因为“聚合之间的关系不是数据模型中的一等公民,大多数聚合存储仅以嵌套地图的形式提供具有结构的聚合内部。”

And besides: "Instead, the application that uses the database must build relationships from these flat, disconnected data structures." 而且: “相反,使用数据库的应用程序必须从这些平坦的,断开的数据结构建立关系。”

I'm sorry, I don't understand what does it mean. 对不起,我不明白这是什么意思。 Why documents store database struggle with a context based on highly relationships? 为什么文档存储数据库在基于高度关系的上下文中挣扎?

Because document stores do not support joins. 因为文档存储不支持联接。 Each time you need to get more data it is a separate query. 每次需要获取更多数据时,它都是一个单独的查询。 Instead, document stores support the idea of nesting data within documents. 相反,文档存储支持在文档内嵌套数据的想法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Mongo 数据库存储 10 亿个文档所需的最小分片数是多少? - What is the minimum number of shards required for Mongo database to store 1 billion documents? 如何决定在NoSQL数据库中存储深层文档还是精简相关文档 - How to decide whether to store deep documents or thin related documents in a NoSQL database 什么是存储数千个中型文档的最有效的面向文档的数据库引擎? - What's the most efficient document-oriented database engine to store thousands of medium sized documents? 将 mongodb 集合中的文档副本存储在字典列表中并使用此数据而不是查询数据库是个好主意吗? - Is it a good idea to store copies of documents from a mongodb collection in a dictionary list, and use this data instead of querying the database? 在数据库中查找空文档 - Find empty documents in a database 用于过滤XML文档的数据库 - Database for filtering XML documents 如何在MongoDB中存储数据(文档) - How store data (documents) in MongoDB Mongoengine 数据库关系和连接字段 - Mongoengine database relations and connected fields 猫鼬如何连接到多个数据库 - Mongoose how to be connected to many database 您是否在MongoDB中使用嵌套文档或通过ID连接的多个文档? - Do you use nested document or multiple documents connected by IDs in MongoDB?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM