Cypher vs Java API

31 views
Skip to first unread message

Sotiris Beis

unread,
Jun 5, 2015, 11:12:12 AM6/5/15
to ne...@googlegroups.com
Hi all,

I am wondering which is better to use in terms of performance and features. Keep in mind that I am building a Java app and I can use Cypher only via ExecutionEngine or if I use neo4j-spring-data. So it would be much appreciated if you can answer the following questions.
- Which one is the fastest for  my use case?
- Both have the same features? I can't find a way to query the graph with regular expressions as described here using the Java API. Is it something the is not supported from Java API?
- Is there any extra overhead when using neo4j spring data?
- Can I access my graph with spring data if the has been build with a python etl script? I've tried some examples and I get this exception: 
No primary SDN label exists .. (i.e one starting with _)
It seems that a spring metadata value missing.

Thanks in advance,
Sotiris

Michael Hunger

unread,
Jun 5, 2015, 11:51:51 AM6/5/15
to ne...@googlegroups.com
Depends on your use-case which one is faster, currently you can tune the Java API better but going forward (2.3+) it is very likely that cypher will be faster.

Get the string property and compare it with string.matches("regexp")

Yes as SDN adds an indirection layer there is overhead managing the graph in a convenient manner.

For SDN3 you'll have to add metadata to the graph with template.postEntityCreation(node/rel, DomainEntity.class)

HTH
Michael
--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sotiris Beis

unread,
Jun 5, 2015, 12:23:05 PM6/5/15
to ne...@googlegroups.com
In terms of performance how is spring data neo4j?

Sotiris

You received this message because you are subscribed to a topic in the Google Groups "Neo4j" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/neo4j/hmnUffm2PmE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to neo4j+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages