Can I upsert an Edge instead of just grah.addVertex

13 views
Skip to first unread message

ODBUser19

unread,
Feb 23, 2020, 3:14:20 PM2/23/20
to OrientDB
Hi,

I am trying to run a batch to create vertex and have Unique Index on one of the property. Is there any way I can update the record if the vertex was already present? I am precisely looking for Upsert command. Does OrientDB has something like this or is there any way I could achieve this.

TIA!

Luigi Dell'Aquila

unread,
Feb 24, 2020, 3:00:52 AM2/24/20
to orient-...@googlegroups.com
Hi Tia,

OrientDB has UPSERT for edges, but with limited support, ie. it only checks if the edge already exists between the two vertices and it needs a unique index.

I hope it helps

Thanks

Luigi

--

---
You received this message because you are subscribed to the Google Groups "OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orient-databa...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/orient-database/e06383c3-e8ac-435f-9c2b-c92702c33152%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages