我正在使用neo4j加载图表。它是一个1100万行的csv文件 这需要很长时间才能装载 2小时过去了,图表还没有完成加载 这是正常的吗? 我的笔记本电脑是i7 2.4Ghs和8g RAM
样本数据:
protein1 protein2 combined_score
9615.ENSCAFP00000000001 9615.ENSCAFP00000014827 151
9615.ENSCAFP00000000001 9615.ENSCAFP00000026847 802
9615.ENSCAFP00000000001 9615.ENSCAFP00000015235 900
9615.ENSCAFP00000000001 9615.ENSCAFP00000007210 261
9615.ENSCAFP00000000001 9615.ENSCAFP00000025394 248
9615.ENSCAFP00000000001 9615.ENSCAFP00000038575 900
9615.ENSCAFP00000000001 9615.ENSCAFP00000011457 177
9615.ENSCAFP00000000001 9615.ENSCAFP00000002193 503
9615.ENSCAFP00000000001 9615.ENSCAFP00000042321 900
9615.ENSCAFP00000000001 9615.ENSCAFP00000011541 207
9615.ENSCAFP00000000001 9615.ENSCAFP00000038517 183
9615.ENSCAFP00000000001 9615.ENSCAFP00000003009 151
查询
CREATE CONSTRAINT ON (n:Node) ASSERT n.NodeID IS UNIQUE;
USING PERIODIC COMMIT
LOAD CSV WITH HEADERS FROM 'file:///linksdog.csv'
AS line
MERGE (n1:Node {NodeID: line.protein1})
MERGE (n2:Node {NodeID: line.protein2})
MERGE (n1)-[:ACTING_WITH {Score: TOFLOAT(line.combined_score)}]->(n2);