- neo4j 3.5.8, desktop 1.2.2-dev.5, browser 3.2.20
question 1:
I have more than 2000 statements in the form:
MERGE ( n :label1:label2 { name:'xxx' , ns:'yy' , uid:'407be989017e' }) RETURN n;
MERGE ( n :label1:label3 { name:'zzz' , ns:'yy' , uid:'407be989017e' }) RETURN n;
loading them in a single batch into an empty DB using the browser runs for more than 8 hours.
Is there another faster way to load it?
Question 2:
For the data above, I need to create indexes on the uid and name properties.
I was looking on a lighter solution trying the following:
with [label1(uid), label1(name), label2(uid), label2(name), label3(uid), label3(name), label4(uid), label4(name)] as items
unwind items as item
Create Index on item;
but it returns an errors.
I'm unable to build a WITH (:label(uid), :label2(uid) .....) as items
and I don't know how to CREATE INDEX ON item
after UNWIND
Any help will be appreciated