Hello all,
i think i have a connection problem from my local Apache-Server to my local Neo4j-Server.
The connection always takes about a second. Can this be a configuration problem? I use the default configuration from Neo4j in version 3.4.1 and PHP 7.1. How long does it usually take to create the session?
Here is my code snippet.
i've used other Frameworks to connect, the problem is the same. With the client from "Neoxygen" it only need 450ms for the first Query. Thats better, but way to long for productiv use. The second Query is no more measurable, because its to fast. The Problem is, that my application asks each single request to an php-backend, so the backend must etablish a new connect for every request.
With the following script, I return 1000 nodes in 24ms, on a local database. I would check that the latency between your app and the db isn't too high, or check also the dns resolution.
Thanks for your reply,
I already use this new driver and this my code
$auth = Authenticate::basic(env('DB_USERNAME_NEO4J'), env('DB_PASSWORD_NEO4J'));
$client = ClientBuilder::create()
->withDriver('bolt', env('DB_BOLT_NEO4J'), $auth)
->withDefaultDriver('bolt')
->build();
return $client->runStatement($statement);
But the problem is when run any request the runStatement() takes a long time