title: improving cypher query performance and find bottleneck in cypher with jdbc to neo4j server connection
body: <p>I'm looking for methods to improve the answer time of my neo4j server, respectively the cypher querying. 
  I've got a server with neo4j running. My neo4j graph is around 55GB. There are 4 different node types, where on each is an index.
  From a client I'm running from java code with jdbc connector a lot(>1000) of queries, like the following:</p>
  
  <pre><code>    MATCH (p0:Page {title:'"+captionU+"'}), (p1:Page {title:'"+labelU+"'}), p = ((p0)-[r:To_Category*..4]-(p1)) RETURN p  
  </code></pre>
  
  <p>According to the neo4j webconsole such a query takes around 4000ms. Using the server shell, shows a similar amount of time(~4000ms). 
  Especially when running my java code some of the queries seem to require<br>
  much more time than 4000ms. setQueryTimeout does not have any effect. </p>
  
  <ol>
  <li><p>So besides buying new hardware for the server, does anyone have an idea of tweaking the jdbc connector or the cypher querying? </p></li>
  <li><p>Does anyone have an idea how to find this bottleneck? In the jdbc logs I do not find something that might give a hint to the problem. </p></li>
  <li><p>On the server permission denied warning appears for $ echo 'deadline' > /sys/block/sda/queue/scheduler </p></li>
  </ol>
  
  <p>Thanks in advance</p>