Hi All,
i’m trying to upload incrementally some data in OrientDB via the upsert functionality.
It all works fine for Classes (Vertexes) but there seems to be an issue for Edges (as you can’t upload them via the “OrientDB Command Node” same way how you would select a Class.
So I’m using the “OrientDB Execute node” to craft the query
apologies for the ‘deprecated’ nodes usage, i had upgraded the flow from 4.0.0 to 4.5.2
→ successful for a couple of iterations – until there are duplicates
ERROR OrientDB Execute 3:479 Execute failed: Cannot index record #100:140269: found duplicated key ‘OCompositeKey{keys=[#74:12, #65:127976]}’ in index ‘_belongsTo.in_out’ previously assigned to the record #100:138809
DB name=“audienceplatform_combinedsegments_inmem”
when i try to build the query upfront (in the string manipulation node) and run it through the “OrientDB Command node” , it seems that functionality is not implemented…
ERROR OrientDB Command 3:516 Cannot execute future!
ERROR OrientDB Command 3:516 Cannot process commands from datatable!
WARN OrientDB Command 3:516 Node created an empty data table.
→ is this an issue that the OrientDB connect nodes developer (se.redfield) needs to resolve? or might there be a graceful solution?
in order to use the ‘upsert’ we have to have a ‘unique’ index on the Edge as below
http://www.orientdb.org/docs/3.2.x/sql/SQL-Create-Edge.html
Thx
Herman