Reputation: 1082
I am using the graphaware php client for neo4j.
When running a query with a "large" parameter object (about 200 lines in pretty print, field values are 30 characters max), it freezes.
The $queryparams
object looks like
{
"data": {
"someproperty": 30000,
"anotherproperty": "stringentry",
<about 200 more like this here, partially nested>
}
}
where
The line
$queryresult = $client->run($query, $queryparams);
becomes long-running and gets time-outed by nginx. I tried
try
{
$queryresult = $client->run($query, $queryparams);
} catch (Neo4jException $e)
{
return "error";
}
to no avail.
Running the same query with the same parameters in the neo4j browser, I get my results instantaneously.
Any ideas about what is causing the problem? Is it graphaware?
EDIT: I posted too fast, but this was unexpected to me: there is a field "0": ...
somewhere in the $queryparams
inside the garbage I mentioned. That is what causing the problem. Is this intended behaviour?
Upvotes: 2
Views: 134