Skip to content

如何理解Downsampling(降采样)? #3976

Answered by qiaojialin
chengjianyun asked this question in Q&A
Discussion options

You must be logged in to vote
  1. 写入数据还是全量存储的。
  2. 即席降采样其实是 group by 查询搭配 last_value 聚合函数时的语义。 group by 是分段聚合查询,查询时指定分段的起始点,分段的间隔和滑动步长,返回每一段时间的聚合结果,结果中time以段的开头或结尾表示,value是这一段数据的某种聚合结果,比如 avg 是每段数据的平均值,last_value 就是每段的最后一个值(这个就是降采样查询了)。
  3. 查询时降采样不需要持久化存储,是跟物化视图的区别。

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by chengjianyun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants