Maximum size of Parameter Object in Query?

妖精的绣舞 提交于 2019-12-10 11:06:43

问题


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

  1. everything is inside the data wrapper
  2. most of the 200 entries are garbage that the query never uses

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?

来源:https://stackoverflow.com/questions/45565713/maximum-size-of-parameter-object-in-query

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!