简体   繁体   English

性能测试Neo4J

[英]Performance Testing Neo4J

Roughly speaking, I am pulling down Twitter into Neo4j. 粗略地说,我将Twitter拖入Neo4j。 I pull in a user and all their friends. 我吸引了一个用户及其所有朋友。 Naturally, the goal is to make this as fast as possible. 自然地,目标是使其尽可能快。 Unfortunately after the neo4j gets above about 25K nodes, insertion gets really slow. 不幸的是,在neo4j达到大约25K节点以上之后,插入速度真的很慢。 With my best algorithm so far it gets as slow as about 10 relationships per second. 到目前为止,使用我最好的算法,它的速度大约为每秒10个关系。 Since the average Twitter user that I'm seeing has about 200 friends, this means 20seconds to pull down an individual and all of their friends. 由于我看到的每个Twitter用户平均大约有200个朋友,因此这意味着20秒才能拉下一个人及其所有朋友。 How can I bump that up considerably? 我该如何大幅度提高?

Here are my tests to this point. 这是我到目前为止的测试。

just a quick heads up: 请快速注意:

You have a syntax error in your CREATE CONSTRAINT it contains a dot that doesn't belong there. 您的CREATE CONSTRAINT中有一个语法错误,它包含一个不属于该点的点。

The exception is swallowed. 吞下了异常。

With the constraint in place it goes down to 3-10s for the whole test: 有了约束,整个测试过程将下降到3-10s:

time:6.519466s; relationship count:39704; node count9902; 
                rel/sec:6090.069340;      node/sec:1518.836052

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM