i have a problem about batch mutation.
What I want to do
we have many data need to insert to dgraph, and created several indexed schemas for our data. for the insert speed, so we run multi script to batch insert into dgraph cluster, but each time new data insert to cluster the index will be refreshed, so we always got Exception:
Transaction has been aborted. Please retry. that means we can only insert one data at the same time.
I was so confused about how to solve that. for the huge data, we can’t insert one by one !
Dgraph version : v21.03.0
Dgraph codename : rocket-mod
Dgraph SHA-256 : 4ca26023e812146d88fc3f5b364589a4de2776fa3dce849d2eff103f3fa9ae60
Commit SHA-1 : a77bbe8ae
Commit timestamp : 2021-04-07 21:36:38 +0530
Branch : release/v21.03
Go version : go1.15.9
jemalloc enabled : true