【问题标题】:Is there an equivalent of Redis's "pipeline" in OrientDB?OrientDB 中是否有相当于 Redis 的“管道”?
【发布时间】:2017-06-19 13:04:14
【问题描述】:

在 redis 中,有一种方法可以将命令“分组”以减少客户端和服务器之间的交换次数。 (redis pipelining)

当与数百或数千个命令一起使用时,它可以显着降低服务器负载。

OrientDB 中是否有等价物?

【问题讨论】:

    标签: orientdb pipelining


    【解决方案1】:

    是的,SQL BATCH。示例:

    begin
    let account = create vertex Account set name = 'Luke'
    let city = select from City where name = 'London'
    let e = create edge Lives from $account to $city
    commit retry 100
    return $e
    

    【讨论】:

      猜你喜欢
      • 2014-06-25
      • 2022-11-24
      • 2017-01-08
      • 2010-10-16
      • 2023-04-04
      • 2016-02-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多