[英]Object-oriented / Relational-Hybrid Database?
I've been using relational databases + object relational mappers for object persistence. 我一直在使用关系数据库+对象关系映射器来实现对象持久性。 I don't think this is a truly adequate solution for persistence, because it adds unnecessary overhead. 我认为这不是真正的持久性解决方案,因为它会增加不必要的开销。 It also forces me to fit objects in a table-like structure, which sometimes can't be done gracefully - it's like fitting a square in a circle - it won't work well. 这也迫使我将对象适配成类似表格的结构,有时无法优雅地完成它-就像将一个正方形适配成一个圆形-效果不佳。
Now, I am aware that there are object-oriented databases out there, but for one thing they lack support, and also the relational model works for most of the data - just not all of it. 现在,我知道那里有面向对象的数据库,但是,一方面,它们缺乏支持,而且关系模型适用于大多数数据-并非全部。
So, are there DBMS that support both object-oriented and relational records? 那么,是否有同时支持面向对象和关系记录的DBMS? Ie: I would be able have records in a (relational) table or a collection of objects depending on what I am working on? 即:我可以在(关系)表中或在对象集合中记录,具体取决于我正在处理什么?
您可能想研究NoSQL作为典型关系存储的替代方法。
"...I am aware that there are object-oriented databases out there, but for one thing they lack support, and also the relational model works for most of the data - just not all of it." “ ...我知道那里有面向对象的数据库,但是一方面,它们缺乏支持,而且关系模型适用于大多数数据,但并非全部。”
This is an unfair statement!.. There are plenty OOP langs with adequate support and several relational models with support for all practical datatypes, including user-defined. 这是一个不公平的声明!..有大量的OOP lang具有足够的支持,而几个关系模型则具有对所有实际数据类型(包括用户定义的)的支持。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.