简体   繁体   中英

Performance Testing Neo4J

Roughly speaking, I am pulling down Twitter into 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. With my best algorithm so far it gets as slow as about 10 relationships per second. 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. 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.

The exception is swallowed.

With the constraint in place it goes down to 3-10s for the whole test:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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