首页 > Web开发 > 详细

cube.js 学习(九)cube 的pre-aggregation

时间:2019-05-03 14:05:54      阅读:148      评论:0      收藏:0      [点我收藏+]

我们可以使用cube的pre-aggregation 加速数据的查询,以下为一张来自官方的pre-aggregation 架构

参考架构图

技术分享图片

pre-aggregation schema

preAggregations: {
  amountByCreated: {
    type: `rollup`,
    measureReferences: [amount],
    timeDimensionReference: createdAt,
    granularity: `month`
  }
}

参考资料

https://cube.dev/docs/caching
https://cube.dev/docs/pre-aggregations

cube.js 学习(九)cube 的pre-aggregation

原文:https://www.cnblogs.com/rongfengliang/p/10804876.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!