I am trying to load a 2million records in dgraph, each is structured like
message_id : <>
message_id_replied_to: <references message_id>
I process them like
- Load all
message_ids
in dgraph using bulk loader Then start processing
message_id_replied_to
, if value ofmessage_id_replied_to
exists in exisitng nodes, I create a RDF using that uid.Then using
liveloader
I insert allmessage_id_replied_to
links (predicates)
Now for running in another machine,
I copy
out
directory which I got after step 1, start alphas using it.Then the RDF file generated after step 2, which looks like
<0x15f91> <message_id_replied_to> <0x70271b> .
andliveload
it
I am assuming p
directory in out
file maintains same uid
and so this liveload will work
The problem is liveloading second time it says
Error while mutating Uid: [430060] cannot be greater than lease: [10000]
and I didn't zw
directory
Also is this approach correct? will it work if i keep a copy of zw
too?enter code here