Which is the best way to Connect neo4j with java

36 views
Skip to first unread message

Sukaant Chaudhary

unread,
Aug 17, 2016, 12:03:20 AM8/17/16
to ne...@googlegroups.com
Hi,
Please suggest the best way to connect neo4j with java for neo4j 2.3.6 and 3.0.4
I'm referring the following link but I want to know the best way among them may be in terms of speed, security etc.
Any help will be appreciated.

-Sukaant Chaudhary

Michael Hunger

unread,
Aug 17, 2016, 3:36:10 AM8/17/16
to ne...@googlegroups.com
What is your use-case, concurrency, application architecture, do you mostly do crud or complex queries?

Von meinem iPhone gesendet

-Sukaant Chaudhary
<image004.png>

--
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.

Sukaant Chaudhary

unread,
Aug 17, 2016, 6:22:35 PM8/17/16
to ne...@googlegroups.com
Hi Michael,
We are designing the new project as a poc now, in which, there will be lots of frequent updates, the query needs to be formed at the runtime, as of now the queries are not that much complex but in future it may be.
We need to consider many combinations while fetching the result.
Please suggest the best available option for this scenario.

Apart from that, is there any way to form the query at runtime in neo4j (i.e. can we replace or add or remove nodes and relations at the runtime)?

-Sukaant Chaudhary


On Wed, Aug 17, 2016 at 12:36 AM, 'Michael Hunger' via Neo4j <ne...@googlegroups.com> wrote:
What is your use-case, concurrency, application architecture, do you mostly do crud or complex queries?

Von meinem iPhone gesendet

Am 17.08.2016 um 06:03 schrieb Sukaant Chaudhary <sukaant....@gmail.com>:

Hi,
Please suggest the best way to connect neo4j with java for neo4j 2.3.6 and 3.0.4
I'm referring the following link but I want to know the best way among them may be in terms of speed, security etc.
Any help will be appreciated.

-Sukaant Chaudhary
<image004.png>

--
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+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.

Michael Hunger

unread,
Aug 17, 2016, 6:29:17 PM8/17/16
to ne...@googlegroups.com
Not really sure what you mean. You can compose queries at runtime in your client and execute them in Neo4j.

For high performance updates you can consider batching updates, or running many small updates concurrently (which will be written optimally by the db). 

I think for your requirements I'd go with the neo4j-bolt-driver and use Cypher for the interaction with Neo4j.

Michael

Sukaant Chaudhary

unread,
Aug 17, 2016, 7:13:38 PM8/17/16
to ne...@googlegroups.com
I got your point, I mean the same what you have explained, that I need to compose the query in java as we are using java.

What about the performance of Spring data neo4j as compared to Cypher JDBC?
My past experience with Cypher JDBC was good but I'm just eager to know the difference performance wise as we are using Spring application.

-Sukaant Chaudhary

Michael Hunger

unread,
Aug 17, 2016, 8:08:53 PM8/17/16
to ne...@googlegroups.com
You can use SDN if you are aware that:

- use the object mapping functionality only for CRUD operations, not to pull the whole database into objects and post-filter
- employ cypher queries with custom projections to DTOs for use-case specific queries that let the database do its work
- SDN 4.x can use bolt as a driver which works really well

Michael

Sukaant Chaudhary

unread,
Aug 19, 2016, 4:15:49 PM8/19/16
to ne...@googlegroups.com
Thank You Michael!

-Sukaant Chaudhary

Reply all
Reply to author
Forward
0 new messages