我正在尝试在 dgraph 中加载 200 万条记录,每个记录的结构类似于
message_id : <>
message_id_replied_to: <references message_id>
我像处理它们一样
- 使用批量加载程序将所有内容加载
message_ids
到 dgraph 然后开始处理
message_id_replied_to
,如果message_id_replied_to
现有节点中存在值,我使用该 uid 创建一个 RDF。然后使用
liveloader
我插入所有message_id_replied_to
链接(谓词)
现在在另一台机器上运行,
我复制
out
了我在第 1 步之后得到的目录,使用它开始 alphas。<0x15f91> <message_id_replied_to> <0x70271b> .
然后是第 2 步之后生成的 RDF 文件,liveload
它看起来像
我假设p
文件中的out
目录保持不变uid
,所以这个 liveload 将起作用
问题是第二次实时加载
Error while mutating Uid: [430060] cannot be greater than lease: [10000]
,我没有zw
目录
这种方法也正确吗?如果我也保留一份副本,它会起作用zw
吗?enter code here