【问题标题】:GAE Datastore read operation pricingGAE 数据存储区读取操作定价
【发布时间】:2018-11-03 07:20:16
【问题描述】:

假设我们这样做

select * from Products where category = "electronics"

select name, price from Products where category = "electronics"

它将对数据存储定价产生什么影响?

来自谷歌云平台文档是这样写的: 不使用 distinct on 子句的投影查询。这种类型的查询被计为为查询本身读取的单个实体。单个结果被计为小操作。

【问题讨论】:

    标签: google-app-engine google-cloud-datastore


    【解决方案1】:

    在定价方面需要权衡两点。投影查询需要一个复合索引,这会导致存储成本增加,但查询会便宜 O(num results * read price)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-08
      • 1970-01-01
      • 1970-01-01
      • 2023-04-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多