NDB查询中找到的实体是否计算(定价)与获取操作相同?

发布于 2025-02-04 23:03:43 字数 269 浏览 3 评论 0原文

我正在查看每个实体阅读的定价Google cloud https://cloud.google.com/datastore.com/datastore.com/datastore.com /定价

如果通过查询与Direct Get()找到实体,是否相同的成本?基本上,运行查询以找到实体更便宜吗?

I'm looking at the per entity read pricing for Google Cloud https://cloud.google.com/datastore/pricing

Is it the same cost if the entity is found via query vs. direct get() by key? Basically, is it cheaper to run queries to find the entity instead?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

坚持沉默 2025-02-11 23:03:43

从您的链接文档中

不使用不同条款的投影查询。这种类型的查询被算作查询本身的单个实体读取。个人结果被计为小型操作。

仅密钥查询。仅键查询被视为查询本身的单个实体。个人结果被计为小型操作。

小型操作是免费的

我的解释(这是我自己的理解可能是错误的)是 - 直接获得按键或投影查询费用只有一个读取,但是标准查询将使您读取查询的读取,并读取读取结果。

From your linked documentation

Projection queries that do not use the distinct on clause. This type of query is counted as a single entity read for the query itself. The individual results are counted as small operations.

Keys-only queries. A keys-only query is counted as a single entity read for the query itself. The individual results are counted as small operations.

Small operations are free.

My interpretation (this is my own understanding which could be wrong) is - A direct get by key or projection query costs just a single read but a standard query will cost you a read for the query and a read for retrieving the result.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文