一起使用 couchDB 和 RDBMS 的应用程序

发布于 2024-07-15 12:10:23 字数 49 浏览 3 评论 0原文

想知道是否存在一种场景,可以在两全其美的场景中同时使用基于文档的数据库和关系数据库?

Wondering if there was a scenario where one would use a document-based DB and a relational DB together in a best-of-both-worlds scenario?

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

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

发布评论

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

评论(3

臻嫒无言 2024-07-22 12:10:23

在我看来,直到我看到一个实际的(开源或其他透明的)应用程序成功地做到了这一点,我仍然怀疑这对于开发人员少于十几个的项目是否值得。

我怀疑,通过选择一种数据库而不是另一种数据库并坚持使用它(无论顺境还是逆境),开发人员都将降低数据模型的复杂性和代码的维护成本。 此外,如果选择两个数据库,就会面临两全其美的情况的风险,即数据既难以操作和报告 (CouchDB),又不可扩展 (RDBMS)。

In my view, until I see an actual (open source or otherwise transparent) application successfully doing this, I will remain skeptical that it's worthwhile for projects with fewer than a dozen developers.

I suspect that by choosing one database over another and sticking with it--in good times and in bad--developers will reduce both the complexity of the data model and the maintenance cost of the code. Also, by choosing two databases, one runs the risk of a worst-of-both-worlds scenario, with data which is both difficult to manipulate and report on (CouchDB) and also not scalable (RDBMS).

活雷疯 2024-07-22 12:10:23

一种想法是使用关系数据库作为主要数据存储,并使用基于文档的数据库作为从后端到前端的数据分发机制。

One idea is to use a relational database as the main data store and a document-based db as a data distribution mechanism from the back end to the front end(s).

海夕 2024-07-22 12:10:23

我们混合使用 RDBMS 和 CouchDB。 RDBMS (IBM DB/2) 用于“精确”数据,其中事务使事情变得更容易。 例如货币和库存的簿记。 CouchDB 用于归档来自RDBMS 的“完成”记录、数字断言(JPEG、扫描文档)和结构不良的信息,例如通过运输公司的跟踪和追踪系统获取的信息。

We use a mix of RDBMS and CouchDB. The RDBMS (IBM DB/2) is used for "exact" data where transactions make things easier. Examples are bookkeeping of money and inventory. CouchDB is used for archival of "finished" records from the RDBMS, digital asserts (JPEGs, scanned documents) and badly structured information, e.g. information acquired via shipping companie's track and trace systems.

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