用于填充物化视图的 SELECT 查询使用的最大内存
运行 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论