Clickhouse - TTL vs ALTER DELETE

雨燕双飞 提交于 2020-04-18 05:34:48

问题


I'd like to understand if the data removal mechanism used by the Clickhouse TTL feature is the same as for the ALTER DELETE mutation. In particular, is the following statement (documentation) referring the ALTER DELETE mutation also valid for the TTL feature:

For *MergeTree tables mutations execute by rewriting whole data parts. There is no atomicity - parts are substituted for mutated parts as soon as they are ready and a SELECT query that started executing during a mutation will see data from parts that have already been mutated along with data from parts that have not been mutated yet.

In other words is my understanding correct that TTL feature is simply an automatically scheduled ALTER DELETE mutation?

来源:https://stackoverflow.com/questions/60994456/clickhouse-ttl-vs-alter-delete

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!