Overhead for neo4j graphaware php client
I am accessing my Neo4j graphics via php client in graphaware neo4j php client . I am now experiencing a significant drop in performance when comparing with
$client = Neo4jClient::create()
->addConnection('bolt','bolt://neo4j:password@myhost:7687')
->build();
$query = "some query";
$time = microtime(true); # system time in microseconds
$result = $client->run($query);
$execms = microtime(true) - $time;
print($execms);
I get a request time of about 250ms, which is a tenfold increase easily compared to the same request made in the neo4j browser.
edit: Perhaps I should add that the graph only contains about 200 nodes, but the request is heavily dependent on the filtering paths. Also, of course, when I run the query a second time, it's about 5x faster due to caching.
What is the reason for this? I imagine maybe
- Bolt protocol is incorrectly enabled for graphaware client
- graphaware generates overhead (unpacks results into php objects, ..)
+3
source to share
No one has answered this question yet
Check out similar questions: