【问题标题】:Is there any way to fetch more than 1 million records in Google Cloud Spanner?有什么方法可以在 Google Cloud Spanner 中获取超过 100 万条记录?
【发布时间】:2020-07-03 06:32:28
【问题描述】:

我有扳手表,使用 apache 梁可以获取 100 万条记录或行。 所以我们对表使用二级索引,因为它提高了性能。 Spanner 表有 4 个二级索引。一个查询并不复杂,只有一个过滤条件。 黑白 SpannerIO 和 spanner 查询 using 语句有什么区别?

【问题讨论】:

    标签: google-cloud-platform apache-beam google-cloud-spanner


    【解决方案1】:

    是的。只要您使用ExecuteStreamingSql 方法(我相信 SpannerIO.read().WithQuery(...) 在后台使用),您应该能够在流式传输中返回大型结果集。如果查询是可分区的,请使用PartitionQuery 来提高性能。

    【讨论】:

      猜你喜欢
      • 2020-06-20
      • 2021-11-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-10
      • 1970-01-01
      • 2017-01-31
      • 1970-01-01
      相关资源
      最近更新 更多