GAE数据存储读取操作定价

时间:2018-05-24 07:02:27

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

假设我们做了

select * from Products where category = "electronics"

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

它对数据存储定价有何影响?

从Google Cloud Platform doc开始编写: 不使用distinct on子句的投影查询。此类查询被视为查询本身的单个实体。个别结果被视为小型操作。

1 个答案:

答案 0 :(得分:0)

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

相关问题