In my scenario, many nodes should link to one, but mutation speed drops very sharp, how can I acclerate mutation speed in this situation?
Here is my experiment:
First I generate 10,000,000 nodes and they all link to node 1.
with open(“a.rdf”,“w”) as f:
for i in range(2,10000000):
a = f"_:{i} _:1 . \n"
f.write(a)
I use dgraph live and the mutation time is 1m37.731695169s
when few nodes link to one node, the mutation speed is sharply faster.
with open(“b.rdf”,“w”) as f:
for i in range(1,5000):
for j in range(60000,62000):
a = f"_:{i} _:{j} . \n"
f.write(a)
I use dgraph live and the mutation time is 54.934653541s
In my scenario I should make many nodes link to one , how can I accelareate mutation speed?