面向对象/关系混合数据库?
我一直在使用关系数据库+对象关系映射器来实现对象持久性。 我认为这对于持久性来说并不是一个真正足够的解决方案,因为它增加了不必要的开销。它还迫使我将对象放入类似表格的结构中,这有时无法优雅地完成 - 就像将正方形放入圆圈中 - 它不会很好地工作。
现在,我知道存在面向对象的数据库,但一方面它们缺乏支持,而且关系模型适用于大多数数据 - 但不是全部。
那么,是否有同时支持面向对象和关系记录的 DBMS 呢?即:我可以在(关系)表或对象集合中包含记录,具体取决于我正在处理的内容?
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? Ie: I would be able have records in a (relational) table or a collection of objects depending on what I am working on?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能想要研究 NoSQL 作为典型关系存储的替代方案。
You may want to research NoSQL as an alternative to a typical relational store.
这是一个不公平的说法!...有大量具有足够支持的 OOP 语言,以及一些支持所有实际数据类型(包括用户定义的数据类型)的关系模型。
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.