Cypher 查询作为 Neo4j 上的批处理操作
我需要在 PHP 中运行这种类型的查询:
I need to run this type of queries in PHP:
START n = node($thisUser), m = node($userId)
MATCH n-[r:RATED]->m
WHERE r.skillId = $id
RETURN id(r)
单个页面中有很多(~30).由于它使用 REST,因此运行时间不适用(~5-10 秒).所以我试图将它们分批发送,但我找不到任何方法来通过 REST 作为单批操作发送实际的密码查询.
There are a lot of them for a single page (~30). Since it's using REST, the run-time comes out not applicable (~5-10 seconds). So I'm trying to send them in a single batch but I cannot find any method to send actual cypher queries through REST as operations in a single batch.
有办法吗?
推荐答案
您是否尝试过以下方法?
Have you tried the following?
a) 交易休息资源
b) 批处理多次调用/db/data/cypher
资源通过 /db/data/batch
资源,在有效载荷中带有 "to":"/cypher"
c) 传递集合而不是单个值作为参数
a) the transactional rest resource
b) batching multiple calls to the /db/data/cypher
resource via the /db/data/batch
resource, with "to":"/cypher"
in the payload
c) passing collections instead of single values as parameters
相关文章