English 中文(简体)
CanOrientDDD 处理多个根根
原标题:Can OrientDB handle multiple root

我刚刚加入GreabDB概念,所以如果我误解了,请原谅我。这个问题主要涉及东方DB,因为我有兴趣使用它作为混合文档+图DB。

OrientDDB s Raw API的文件似乎建议我们“它们应该”宣布一个根节点,并给它命名......http://code.google.com/p/orient/wiki/GraphDatabaseRaw

然而,我想知道这是否绝对必要。 正如我所看到的独立图表同样是常见的实用用途和给定的东方DB结构(图DB建在基于文档的数据库之上 ) 。 当然,我应该能够在群集/分类类型中创建多个独立的图表,并通过指定起始节点来绕过图。

数据类型/类别单一根节点的理想似乎限制性太强。

是否有人使用原始图 API 处理东方DB的更好例子?我不愿使用Tinkerpop API,因为根据这个页面 < a href="http://code.google.com/p/orient/wiki/JavaAPI" rel = "nofolt" >http://code.google.com/p/orient/wiki/JavaAPI < /a > Tinkerpop API比原始图 API(我建立一个面向业绩的应用程序)要慢得多,但我找不到任何典型的使用实例。

最佳回答

根节点是可选择的, 以此开始不经查询而跨过图形。 您可以避免使用它, 执行查询以获取您的图形元素 。

关于TinkerPop蓝图的使用,你也可以在这个级别保持混合状态,只有在表现是必须的(根据一些基准)时,才能使用本地API, 并且让Gremlin去完成大部分的旅程。

问题回答

暂无回答




相关问题
what is wrong with this mysql code

$db_user="root"; $db_host="localhost"; $db_password="root"; $db_name = "fayer"; $conn = mysqli_connect($db_host,$db_user,$db_password,$db_name) or die ("couldn t connect to server"); // perform query ...

Users asking for denormalized database

I am in the early stages of developing a database-driven system and the largest part of the system revolves around an inheritance type of relationship. There is a parent entity with about 10 columns ...

Easiest way to deal with sample data in Java web apps?

I m writing a Java web app in my free time to learn more about development. I m using the Stripes framework and eventually intend to use hibernate and MySQL For the moment, whilst creating the pages ...

join across databases with nhibernate

I am trying to join two tables that reside in two different databases. Every time, I try to join I get the following error: An association from the table xxx refers to an unmapped class. If the ...

How can I know if such value exists in database? (ADO.NET)

For example, I have a table, and there is a column named Tags . I want to know if value programming exists in this column. How can I do this in ADO.NET? I did this: OleDbCommand cmd = new ...

Convert date to string upon saving a doctrine record

I m trying to migrate one of my PHP projects to Doctrine. I ve never used it before so there are a few things I don t understand. In my current code, I have a class similar to this: class ...

热门标签