数据库 - 以下两种mongodb collection的设计哪种好一点?
高洛峰
高洛峰 2017-05-02 09:20:44
0
1
573



这是一个关于员工请假的设计
需要有获取所有员工下的请假数据的需求
也会有获取单个员工下的请假数据的需求
请问哪一种比较好?还是应该只保存leaveId,leave新建一个collection?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
阿神

The second good point is that NoSQL makes the data flat and even has an appropriate amount of redundancy to reduce correlations, which can effectively improve efficiency. This is the so-called anti-paradigm design. The first type is more common in relational databases, which is the so-called paradigm design

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template