performance - Fastest way to get all Neo4j nodes and relationships? -



performance - Fastest way to get all Neo4j nodes and relationships? -

what fastest way unordered nodes , relationships running neo4j 2.x server program?

cypher match n homecoming n slow utilize case (say have >10m nodes extract).

the shell command dump seems interesting requires hack phone call source code. there benchmark available of dump?

any advices appreciated!

--edit--

i execute query thought rest endpoint of local neo4j server (thus no network effect) query match n homecoming n skpi 0 limit 50000. db neo4j 2.0.3 populated 100k nodes of 1 integer property , no relationship. computer: ssd read speed 1.3+ mo/s , cpu i7 1.6ghz, jvm -xmx2g. takes ~4s retreive 50k nodes:

curl -s -w %{time_total} -d"query=match n homecoming n limit 50000" -d- -onul: http://localhost:7474/db/data/cypher http/1.1 200 ok content-type: application/json; charset=utf-8 access-control-allow-origin: * content-length: 63394503 server: jetty(9.0.z-snapshot) 4,047

what want enable http chunked encoding (aka steaming) allow neo4j start sending results without holding them in memory. adding accept: application/json;stream=true http request header.

this requests trick:

curl -i -o streamed.txt -xpost \ -d'{ "query":"match n homecoming n" }' \ -h 'accept:application/json;stream=true' \ -h 'content-type:application/json' \ 'http://localhost:7474/db/data/cypher'

on side note, if want start parsing response on side before having received whole content (to avoid filling memory / hard drive), may want json stream parsing.

performance neo4j dump

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -