Cypher 查询作为 Neo4j 上的批处理操作 [英] Cypher queries as batch operations on Neo4j

查看:43
本文介绍了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

这篇关于Cypher 查询作为 Neo4j 上的批处理操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆