“开始流式传输"与“开始流式传输"之间有什么区别?和“已完成"在Neo4j查询中? [英] What is the difference between "started streaming" and "completed" in Neo4j queries?

查看:90
本文介绍了“开始流式传输"与“开始流式传输"之间有什么区别?和“已完成"在Neo4j查询中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Neo4j浏览器中,当我分析查询时,我得到:在129毫秒后开始流式传输162063记录,在13793毫秒后完成流式传输".在129毫秒后是否收集了所有结果,但将结果输出到浏览器却花费了13793毫秒?

In the Neo4j browser, when I profile a query, I get: "Started streaming 162063 records after 129 ms and completed after 13793 ms." Were the results all gathered after 129ms, but it took 13793ms to output them to the browser?

此外,当我在Cypher Shell中运行查询时,我得到"162 ms的行在9 ms之后可用,又在8673 ms之后被消耗".这是否意味着所有数据都在9毫秒后收集了,但是将其输出到Shell却花费了8673毫秒?

Also, when I run queries in the Cypher Shell, I get "162063 rows available after 9 ms, consumed after another 8673 ms". Does this mean all of the data was gathered after 9ms, but it took 8673ms to output it to the shell?

推荐答案

对记录(或行)进行流处理 时,neo4j服务器会尽快将每条记录发送出去-而不是等待所有记录被收集",然后一次发送所有记录.

When records (or rows) are streamed, the neo4j server sends each record as soon as it is available -- as opposed to waiting for all the records to be "gathered" and then sending them all at once.

例如,在129毫秒后开始流式传输162063记录,在13793毫秒后完成流式传输".表示服务器在129毫秒后流了第一条记录,在13793毫秒后流了最后一条记录. (顺便说一句,这几乎是每毫秒12条记录的速率.)

So, for instance, "Started streaming 162063 records after 129 ms and completed after 13793 ms." means that the server streamed the first record after 129 ms and the last record after 13793 ms. (By the way, that is a rate of almost 12 records per ms.)

流数据的消耗速率会影响将数据馈送到流中的速率.

The rate at which streamed data is consumed affects the rate at which data can be fed into the stream.

这篇关于“开始流式传输"与“开始流式传输"之间有什么区别?和“已完成"在Neo4j查询中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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