Hi,


I'm trying to import a tree structure via ETL into OrientDB. My data is 
almost identical to the example here 
http://orientdb.com/docs/2.2/Import-a-tree-structure.html .


But unlike the example code, I'm trying to make recurring ETL-loads that 
should update the edges in the graph.


id,name,parent
1,Root,0
2,Org#002,1
3,Org#003,1
4,Org#004,3
5,Org#005,2
6,Org#006,5
7,Org#007,2


I'm using the folloing JSON to load the file:


[...]
"transformers": [
    {
        "csv": {}
    },
    {
        "merge": {
            "joinFieldName": "id",
            "lookup": "Org.id"
        }
    },
    {
        "vertex": {
            "class": "Org"
        }
    },
    {
        "edge": {
            "class": "isParent",
            "joinFieldName": "parent",
            "lookup": "Org.id",
            "direction": "in",
            "unresolvedLinkAction": "SKIP"
        }
    }
],
[...]


So far this works fine for the initial import, all Vertexes and Edges are 
created.

But when I want to update the graph - e. g. the parent-id changes, I would 
expect the the edge from the parent to the child gets updated, but instead 
it creates an additional, new edge instead of updating the old one.


*What do I have to do so that the old edges created during previous imports 
are getting updated to point to the new Vertexes?*


BR,

Alessandro


PS. Sorry for x-posting from stackexchange, but as this is the official 
forum I think there is a higher chance to get it answered here.

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to