实体上的 Blob 属性会影响查询性能吗?

发布于 2024-08-31 19:57:53 字数 244 浏览 0 评论 0原文

我正在考虑是否将实体的二进制表示形式存储为其 Blob 属性,或者是否最好将 Blob 保留在某个单独的“包装”类中。
在第一种情况下,我担心对内存堆和/或查询执行时间可能产生的影响,复杂性投票反对另一种情况。

我知道 Blob 没有索引,即索引大小不是我担心的。另外,我假设对于 blob 数据存储将 defaultFetchGroup 设置为 false,但这是否意味着 blob 在查询中不会产生影响?

问候
J·扎鲁巴

I'm trying to make my mind on whether to store a binary representation of an entity as its Blob property, or whether I better keep the blobs in some separate 'wrapping' class.
Possible impact on memory heap and/or a query execution time are my concerns in the first case, complexity votes against the other one.

I know Blobs are not indexed, i.e. index size is not what I'm worrying about. Also I assume for blobs Datastore puts defaultFetchGroup to false, but does it mean that blobs don't make a difference in queries?

Regards
J. Záruba

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

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

发布评论

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

评论(1

ゃ人海孤独症 2024-09-07 19:57:53

以防万一有人遇到这个问题,这是尼克·约翰逊对类似问题的回答:
通过减小实体大小来提高 App Engine 性能

我的问题的简短答案是“是”。

Just in case someone came across this question this is Nick Johnson's response to similar one:
Improve App Engine performance by reducing entity size

And the short answer to my question is 'yes'.

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