Neography: Transition Against Kiefer

Im currently building something with Neo4j and Neography and wonders which is preferable: using traverse method or Cypher request?

Personally, I like Cypher, but I have no idea which is better / more effective

+4
source share
3 answers

Cypher is really intuitive, as Matthias pointed out, however I have the following recommendation:

If its trivial stuff, go Cypher, it's easier to write (really fun), and there shouldn't be a big performance penalty. However, if you have larger matches or conditional queries, knowing the domain of your chart can significantly improve performance if you use custom traverses or even Gremlin

+1
source

I just created a benchmark for a friend requesting friends for the Cypher vs Core API and Traverser Framework on a graph with about 1 mio nodes. FOAF queries are not very complex, but are useful for graphical databases such as neo4j.

http://www.rene-pickhardt.de/get-the-full-neo4j-power-by-using-the-core-java-api-for-traversing-your-graph-data-base-instead-of- cypher-query-language /

Cypher performs slower by at least one order of magnitude

You can see that Cypher performs much worse than the main API.

+4
source

I am sure that both of them have their weak points, and Cypher is probably already more intuitive to express your requests. Try generating your queries with Cypher, if you like it, and if performance satisfies you, then all is well! If not, then maybe try it as part of a workaround.

+2
source

Source: https://habr.com/ru/post/1415243/


All Articles