Recently, I upload massive data to DB via bulk, and I need upload other data later. But I can’t find the map of xids to uids to avoid creating nodes with the same xid.
I know that dgraph live can create ‘x’ to store this map, but how can I get the map when I upload via bulk?
So bulk loader stores the mapping in tmp/xids
directory. It cleans the tmp
directory upon a successful run. You can pass in --cleanup_tmp=false
to avoid that cleanup.
There is a small bug whereby the mapping is not evicted to disk at the end. I have fixed it as part of Fix a small bug with respect to expand edges. by pawanrawal · Pull Request #2195 · dgraph-io/dgraph · GitHub. So a part of the mapping might be missing right now.
Btw, you should not use Dgraph bulk on a live cluster. You could though use the x
directory created by dgraph bulk
with dgraph live
.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.