使用 Oracle/PostrgreSQL 等对象关系数据库与常规关系数据库相比有何优势?

发布于 2024-09-26 15:43:12 字数 73 浏览 0 评论 0原文

我很好奇使用对象关系数据库相对于常规关系数据库的主要优点/缺点是什么?

在什么情况下更实用,对象关系数据库是未来吗?

I'm curious as to what the major pros/cons are of using an object relational database over a regular relational database are?

In what circumstances is it more practical, and are object relational databases the future?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

梦罢 2024-10-03 15:43:12

如果您使用 ORM 数据库,您可能会发现对获取数据的接口进行编程更容易(例如,无需开发特殊的数据库软件层),但是会产生额外的开销,因为 ORM 通常会生成许多不同的方法,例如作为 Rails 的 ActiveRecord find_by_... 。您的底层数据可能仍存储在关系数据库中。

使用关系数据库的优点是它通常更适合您的特定问题,因为您的数据访问层仅具有检索内容所需的最少功能。缺点是需要构建自己的数据库访问层,并且必须生成 ER 图以供将来参考和更新数据库。

就我个人而言,我更喜欢在我的项目中使用关系数据库。

If you are using an ORM database, you might find it easier to program the interface for fetching data (e.g. no need for developing a special DB software layer), however there will be additional overhead since ORM will generally generate a lot of different methods such as Rails' ActiveRecord find_by_... . Your data underneath will probably still be stored in a relational DB.

With relational DB, the advantage is that it is usually better geared for your specific problem, as your data access layer will only have the minimum neccessary functions for retrieving stuff. The cons are the need to build your own db access layer and having to produce ER diagram for future reference and updates to DB.

Personally, I prefer the relational DB for my projects.

你的往事 2024-10-03 15:43:12

对象关系与普通关系的含义完全相同。 Oracle 和 PostGreSQL 使用的术语“对象关系”只是意味着 SQL 中更好的类型支持。它并不意味着关系模型之外的任何类型的扩展或新功能。

Object relational means exactly the same as just plain relational. The term "object relational" as used by Oracle and PostGreSQL just means better type support in SQL. It doesn't imply any kind of extension or new feature outside the relational model.

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