简体   繁体   English

如何在 OrientDB 中为数千个顶点创建边缘?

[英]How to create edge in OrientDB for thousands of vertex?

I have two classes, accountholder and Transactions in orientDB, AccountHolder has the person informations, transactions has the accHolderID from accountholder class and each accountholder have multiple transactions, to create edges do I have to one by one and create,我在 orientDB 中有两个类,accountholder 和 Transactions,AccountHolder 有人员信息, transactions 有来自 accountholder class 的 accHolderID 并且每个 accountholder 有多个交易,要创建边,我必须一个一个地创建,

Is it possible to create by one query.是否可以通过一个查询创建。

Example AccontHolder class has properties AccID, Type, AcDate, AcCode and thousand data in it transactions class has properties TrxID, TrDate, TrCode, Merchant, Amount, AccID and million data in it示例 AccontHolder class 具有属性 AccID、Type、AcDate、AcCode 和其中的千数据

I need to create Edges, say AccID to their TrxID's Merchant to AccID Merchant to Type likewise many edges, so I can traverse in graph我需要创建边,将 AccID 说给他们的 TrxID 的商家到 AccID 商家来键入同样的许多边,所以我可以在图中遍历

To Create the Edges, Do I have to go one by one, Or How can I create all?要创建边缘,我是否必须逐个 go,或者如何创建所有?

You can create multiple edges in single query Please refer orientdb documentation for Create an edge of the class E between multiple vertices .您可以在单个查询中创建多个边请参阅 orientdb 文档以在多个顶点之间创建 class E 的边 Where you can create one to many edges.您可以在其中创建一对多边。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM