Cypher queries as batch operations on Neo4j(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 上的批处理操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Cypher 查询作为 Neo4j 上的批处理操作
基础教程推荐
- 如何替换eregi() 2022-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
