同一应用程序使用 NOSQL 和 RDBMS
谁能指出我可以使用 RDBMS 维护数据但使用 NOSQL 数据库推送数据的任何示例。我的目标是向 RDBMS 添加/更新/删除,但将实体及其所有相关数据存储在 NOSQL 数据库中。然后,我想将数据从NOSQL中推出。这听起来是个坏主意吗?我的目标是让 NodeJS 以所有相关数据的分层格式呈现此数据。
Can anyone point to me of any examples in which i can use an RDBMS to maintain data but use a NOSQL database to pushout data. My goal is to add/update/delete to the RDBMS but store entities with all of thier related data in the NOSQL database. Then, I would like to push the data out from NOSQL. Does this sound like a bad idea? My goal is to have nodejs present this data in a hierarchal format of all of its related data.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如其他人所说,听起来您想将所有数据存储在两个不同的引擎中,除非我们迁移到新系统,否则我看不到其中的大想法。
如果您担心 nosql 一致性,并且您的数据确实适合您的 rdbms,那么当您可以让节点连接到您的 rdbms 并直接从中获取数据时,我看不出使用 nosql 的意义。
看看 driver for postgresql 它是 postgresql 的驱动程序。我还没有尝试过,但看起来它已经经过相当的开发和测试。
As others have said it sounds like you want to store all youre data in 2 different engines, and I can not see the big idea in that unless we are migrating to a new system.
If you are afraid of the nosql consistency and your data do fit in youre rdbms I can't see the point in using the nosql when you can have node connect to your rdbms and fetch the data stright from that.
have a look at driver for postgresql it is a driver for postgresql. I haven't tried it, but it look's like its fairly developed and tested.