问题描述
我需要在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.
有办法吗?
推荐答案
您尝试过以下吗?
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
这篇关于将Cypher查询作为Neo4j上的批处理操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!