用于填充物化视图的 SELECT 查询使用的最大内存

发布于 2025-01-19 09:46:16 字数 557 浏览 2 评论 0原文

运行 SELECT 查询来填充物化视图时,是否有特定参数来设置 Clickhouse 可以使用的最大内存量?或者 Clickhouse 是否强制执行与传统 SELECT 查询相同的内存限制?

是否有一个指标可以跟踪用于填充物化视图的内存?如果没有,我可以使用聚合合并树中 0 级最近部分的未压缩大小作为估计吗?我预计,如果我刚刚插入的部分未压缩为 10Mb,则 SELECT 查询不应占用比该值更多的内存。

语境: 版本:21.8.13.1.altinitystable

我有一个 MergeTree 表、一个 AggregatingMergeTree 和一个物化视图,用于使用 MergeTree 的内容填充 AggregatingMergeTree。架构位于此处,但我认为这并不重要。

因此,我试图找出 Clickhouse 拒绝写入之前的限制是什么,以及是否有办法监视我的插入在当前状态下占用了多少内存。

谢谢

is there a specific parameter to set the maximum amount of memory Clickhouse can use when running the SELECT query to populate a materialized view? Or does Clickhouse enforce the same memory limit it uses for conventional SELECT queries?

Is there a metric that tracks the memory used to fill in a materialized view? If not, can I use the uncompressed size of level 0 recent parts in the aggregating merge tree as an estimate? I would expect that, if a part I just inserted is 10Mb uncompressed, the SELECT query should not have taken more memory than that approximatively.

Context:
Version: 21.8.13.1.altinitystable

I have a MergeTree table, an AggregatingMergeTree and a materialized view to populate the AggregatingMergeTree with the content of the MergeTree. The schemas are here, but I think that should not really matter.

So I am trying to find out what the limit will be before Clickhouse will reject writes and if there is a way to monitor how much memory my inserts are taking in memory in the current state.

Thank you

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文