OrientDB GraphED - SQL insert edge between two (select vertex RID)s? Or alternative approach for very large import

杀马特。学长 韩版系。学妹 提交于 2019-12-06 01:37:34

SQLCreateEdge is probably what you're trying to do:

create edge from
(select from V where label = 'vertexOne')
to
(select from V where label = 'vertexTwo')
set label = 'is_connected_to'

however, for very large import of connections i suggest SQLCreateLink. this gem is suggested here.

Bulk edge insert is possible as SQL Bath

begin;
  CREATE EDGE E FROM #34:3349  TO #32:3349;
  CREATE EDGE E FROM #41:10971 TO #33:3348;
commit retry 100;
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!