Upgrade to 3.0 then that query will be fast.
Don't use SpringRestGraphDatabase.
Use the offical driver to run cypher queries.

You can set some config options for socket and connection timeouts as
System properties.

https://github.com/spring-projects/spring-data-neo4j/blob/3.4.x/spring-data-neo4j-rest/src/main/java/org/neo4j/rest/graphdb/util/Config.java#L33

org.neo4j.rest.connect_timeout
org.neo4j.rest.read_timeout

On Fri, Aug 19, 2016 at 4:22 AM, Ganesh Selvaraj <[email protected]>
wrote:

> Hi,
>
> I am using SpringRestGraphdatabase java api to execute cypher queries. I
> have a cypher query to calculate the node count per label as a part of an
> audit/verification, and this query takes a long time and faces time out
> error.
> Error: com.sun.jersey.api.client.ClientHandlerException: 
> java.net.SocketTimeoutException:
> Read timed out
>
> Is there a way to increase or cancel time out from the Java API.
> Your help is much appreciated.
>
> Thanks
> Ganesh
>
> --
> 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 [email protected].
> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to