简体   繁体   English

Neo4j - Cypher vs Scala-Neo4j API

[英]Neo4j - Cypher vs Scala-Neo4j API

Am new to both Scala and Neo4j. 对Scala和Neo4j都是新手。 I wanted to use Neo4j embedded in my Scala Project. 我想在我的Scala项目中使用Neo4j。 Which is the better way of using it among Cypher queries and Scala-Neo4j API? 在Cypher查询和Scala-Neo4j API中使用它的哪种方法更好?

I would say Cypher is the easiest, best documented and declarative way to interact with Neo4j. 我想说Cypher是与Neo4j交互的最简单,最好的文档和声明方式。 I would switch to the scala/java API only for 2 reasons: 我只会出于以下原因切换到scala / java API:

  • Missing functionality like imperative traversals (if ever necessary) 缺少命令式遍历等功能(如果有必要)

  • Performance, which currently still is better in some cases with the embedded API until Cypher is based on a new high-performance Java API 性能,在嵌入式API的某些情况下,目前仍然更好,直到Cypher基于新的高性能Java API

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

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