I have a case where I will have multiple dgraph instances. Different instances will be the master of certain information. I need to periodically sync that info from one Dgraph instance to the other.
What I am trying to wrap my head around is how not only to load the data initially, but also perform updates, efficiently with UUIDS (or other unique strings) from origin DB to destination DB. Looking at this github issue: https://github.com/dgraph-io/dgraph/issues/600, I see the last comment by @janardhan is:
we support xid natively now. Each xid would be assigned an unique uid internally.
But the current docs say:
As of version 0.8 Dgraph doesn’t natively support such external IDs as node identifiers. Instead, external IDs can be stored as properties of a node with an xid edge.
At the end of the day, I would like to do something like:
Initial bulk (or dgraphloader) Load:
_:newNode <Prop> "Initial Value"
_:newNode <xid> "0x123"
Subsequent dgraphloader (or normal mutation) with updated data:
<xid:[0x123]> <Prop> "Updated Value"
How would I accomplish this most efficiently with 0.8 features?