【问题标题】:How to create edge in OrientDB for thousands of vertex?如何在 OrientDB 中为数千个顶点创建边缘?
【发布时间】:2019-11-07 05:53:33
【问题描述】:

我在 orientDB 中有两个类,accountholder 和 Transactions,AccountHolder 有人员信息,transactions 有来自 accountholder 类的 accHolderID,每个 accountholder 有多个交易,要创建边,我必须一个一个地创建,

是否可以通过一个查询创建。

示例 AccontHolder 类具有属性 AccID、Type、AcDate、AcCode 和其中的千位数据 交易类中包含属性 TrxID、TrDate、TrCode、Merchant、Amount、AccID 和百万数据

我需要创建边缘,比如说 AccID 到他们的 TrxID 的 商家到 AccID 商家输入 同样有很多边,所以我可以在图中遍历

要创建边缘,我必须一个接一个,或者我如何创建所有?

【问题讨论】:

    标签: sql orientdb


    【解决方案1】:

    您可以在单个查询中创建多个边 请参阅 orientdb 文档以获取 Create an edge of the class E between multiple vertices。您可以在其中创建一对多边。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-06-19
      • 2014-02-15
      • 1970-01-01
      • 1970-01-01
      • 2018-04-30
      相关资源
      最近更新 更多