Google Cloud Spanner:长 运行 查询

Google Cloud Spanner: Long Running Query

我正在尝试通过 UI 或 Ruby API 在 Google Cloud Spanner 上执行长 运行 查询。目标是让所有早于某个时间戳的行都过期,所以 SQL 非常简单,这不是问题所在。根据我拥有的行数,我估计查询至少需要一个小时。
在 UI 中,页面在一分钟后崩溃,在 Ruby API 中,它引发错误
Google::Cloud::DeadlineExceededError
60 或 120 秒后,具体取决于 gem 版本。
如何执行查询以删除旧行?

我建议考虑将分区 DML 与 Client#execute_partition_update 方法结合使用。文档指出此方法是 "good fit for large, database-wide, operations that are idempotent, such as deleting old rows from a very large table".