Apache Doris 中文技术论坛
Questions Tags Users Badges

doris的建表语句如何设置TTL

Asked Dec 23, 2024 Modified Jan 1, 0001
Viewed 85
2.0

因为unique key 表,通常不会将时间戳放到key里面,没法按照时间分区
那建表的时候,指定unique key id,但是没按时间来进行分区,如何设置TTL吗?

edited Jan 1, 0001
蜂蜜烤鸡翅17
asked Dec 23, 2024
1 Answers

当前unique表的分区列需要作为key列,普通表没有ttl的机制;看建模上是否可以结合doris特性进行优化下的。

edited Jan 1, 1970
张彬华7698
answered Dec 23, 2024
Related Questions
Doris Routine Load重置offset
1 answers
Doris 2.0.15,3FE、6BE(3BE mix角色 3BE computation角色)3个mix角色的BE节点CPU使用率100%
1 answers
我的doris版本为2.0.6 在备份操作时,会导致所以fe节点宕机,这种情况该怎么排查,为什么备份会导致这个问题?
1 answers
Doris Routine Load自动恢复机制
1 answers
doris fe节点变更成高可用配置
1 answers
doris主键表可以bucket配置太小,怎么修改?
1 answers

Terms of service Privacy policy

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2026 Apache Doris 中文技术论坛.