面向对象/关系混合数据库?

发布于 2024-09-12 09:18:52 字数 264 浏览 0 评论 0原文

我一直在使用关系数据库+对象关系映射器来实现对象持久性。 我认为这对于持久性来说并不是一个真正足够的解决方案,因为它增加了不必要的开销。它还迫使我将对象放入类似表格的结构中,这有时无法优雅地完成 - 就像将正方形放入圆圈中 - 它不会很好地工作。

现在,我知道存在面向对象的数据库,但一方面它们缺乏支持,而且关系模型适用于大多数数据 - 但不是全部。

那么,是否有同时支持面向对象和关系记录的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

毁虫ゝ 2024-09-19 09:18:52

您可能想要研究 NoSQL 作为典型关系存储的替代方案。

You may want to research NoSQL as an alternative to a typical relational store.

绅刃 2024-09-19 09:18:52

“...我知道有
面向对象的数据库,
但一方面他们缺乏支持,
关系模型也有效
对于大多数数据 - 只是不是全部
它。”

这是一个不公平的说法!...有大量具有足够支持的 OOP 语言,以及一些支持所有实际数据类型(包括用户定义的数据类型)的关系模型。

"...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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文