我需要在 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 上的批处理操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
PHP、MySQL PDOException 的死锁异常代码?Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死锁异常代码?)
PHP PDO MySQL 可滚动游标不起作用PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滚动游标不起作用)
PHP PDO ODBC 连接PHP PDO ODBC connection(PHP PDO ODBC 连接)
使用 PDO::FETCH_CLASS 和魔术方法Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔术方法)
php pdo 只从 mysql 获取一个值;等于变量的值php pdo get only one value from mysql; value that equals to variable(php pdo 只从 mysql 获取一个值;等于变量的值)
MSSQL PDO 找不到驱动程序MSSQL PDO could not find driver(MSSQL PDO 找不到驱动程序)