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 上的批处理操作


- PHP - if 语句中的倒序 2021-01-01
- 覆盖 Magento 社区模块控制器的问题 2022-01-01
- PHP foreach() 与数组中的数组? 2022-01-01
- 如何从数据库中获取数据以在 laravel 中查看页面? 2022-01-01
- 如何使用 Google API 在团队云端硬盘中创建文件夹? 2022-01-01
- Laravel 5:Model.php 中的 MassAssignmentException 2021-01-01
- 使用 GD 和 libjpeg 支持编译 PHP 2022-01-01
- openssl_digest vs hash vs hash_hmac?盐与盐的区别HMAC? 2022-01-01
- Oracle 即时客户端 DYLD_LIBRARY_PATH 错误 2022-01-01
- 如何在 Symfony2 中正确使用 webSockets 2021-01-01