是否有一个nosql存储也允许存储的实体之间的关系? [英] Is there a nosql store that also allows for relationships between stored entities?

查看:128
本文介绍了是否有一个nosql存储也允许存储的实体之间的关系?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找nosql关键值存储,这些存储也提供了存储/维护存储实体之间的关系。我知道Google App Engine的数据存储允许实体之间拥有和未拥有的关系。任何流行的nosql商店是否提供类似的东西?

即使它们中的大多数模式较少,是否有方法可以将关系存储到关键值存储上? 它属于图形数据库的核心功能,以提供对实体之间关系的支持。 通常,您将实体建模为节点,将关系建模为图中的关系/边。与 RDBMS 不同,您不必事先定义关系 - 只需将它们添加到图表根据需要(无模式)。我创建了一个领域建模画廊,给出了一些在实践中可以看到的示例。这些示例使用Neo4j graphdb,这是我参与的一个项目。本项目的邮件列表用于证明对图形建模问题非常有帮助。

面向文档的数据库 Riak 支持文档之间的链接。



您可以在任何数据库引擎(如键/值)之上添加对关系的支持,但它不会来工作。这一切都归结于您的使用案例。如果您提供了更多详细信息,则可以更容易地提出有用的答案。



糟糕,现在我看到标题显示为nosql store,然后您的实际问题将此范围缩小直到nosql键值存储。由于键/值存储没有用于定义实体之间关系的语义,我仍会发布我的答案。


I am looking for nosql key value stores that also provide for storing/maintaining relationships between stored entities. I know Google App Engine's datastore allows for owned and unowned relationships between entities. Does any of the popular nosql store's provide something similar?

Even though most of them are schema less, are there methods to appropriate relationships onto a key value store?

解决方案

It belongs to the core features of graph databases to provide support for relationships between entities. Typically, you model your entities as nodes and the relationships as relationships/edges in the graph. Unlike RDBMS you don't have to define relationships in advance -- just add them to the graph as needed (schema-free). I created a domain modeling gallery giving a few examples of how this can look in practice. The examples use the Neo4j graphdb, a project I'm involved in. The mailing list of this project use to prove very helpful for graph modeling questions.

The document-oriented database Riak has support for links between documents.

You can add support for relationships on top of any database engine (like key/value), but it doesn't come whithout work. It all comes down to your use case. If you provide more details it's easier to come up with a useful answer.

Oops, now I saw that the title says "nosql store" and then your actual question narrows this down to "nosql key value store". As key/value stores have no semantics for defining relationships between entities I'll still post my answer.

这篇关于是否有一个nosql存储也允许存储的实体之间的关系?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆