如何仅针对新事实或更新的维计划SSAS多维数据集刷新? [英] How to schedule an SSAS cube refresh only for new facts or updated dimensions?
问题描述
通过使用VS2017构建了一些测试数据多维数据集,我的团队现在准备开始以更类似于生产的方式使用它们。因此,我们需要执行一些基本任务,但是我们正在努力寻找有用的资源。
Having built a few "test" datacubes through using VS2017, my team are now ready to start working with them in a more production like manner. As such there are a few basic tasks that we need to implement, but we are struggling to find useful resources for.
- 我们该怎么做每月一次刷新多维数据集而不重新生成所有维度和事实表吗?
- 如果在维度设计中实现尺寸变化,VS2017是否能够识别/兑现缓慢变化的维度?
对此进行猜测:
在我们的ETL数据库中(考虑到我们使用VS2017),我们需要:
In our ETL databases (bearing in mind we're using VS2017) we need to:
对于DataSourceView中使用的表,最终将成为多维数据集中的维度:
For the Tables that are used in the DataSourceView, that will ultimately become the Dimensions in the cube:
- 基于原始数据库创建维度的当前快照;也就是说,客户维度现在是什么样子?
- 将此值与上次处理运行中ETL中保存的缓慢变化的维度表进行比较。
- 进行必要的行插入并更新所有旧条目的审核字段。
对于事实表:
- 自上次刷新以来的时间段内,将所有其他条目添加到表中。这应该使用更新的维度。
当我们刷新AnalysisServer上的数据多维数据集时,它将做什么?
大概会刷新维度表的全部内容,因为它们通常相对较小;但是事实表会完全刷新还是仅从更新后的最后一个位置刷新。
When we refresh the datacube on the AnalysisServer what will this do? Presumably the Dimensions tables are refreshed in their entirety as they are usually relatively small; but will the Fact tables refresh completely or just from the last place they were updated.
对于这个问题的基本性质表示歉意,但是我们已经超出了理想化的教程阶段,现在正陷入行话的深渊和我们自己的无知:-(
Apologies for the basic nature of this question, but we've moved beyond the idealised tutorial stage and are now wallowing in an abyss of jargon and our own ignorance :-(
推荐答案
- 如何在不重新生成维度和事实表的所有
的情况下每月刷新一次多维数据集?
您需要在ETL逻辑中实现增量加载。您可以在两种类型的增量加载之间进行选择:
You need to implement an incremental loading inside your ETL logic. You can choose between two types of incremental loading:
- 仅插入和更新:您可以使用查找组件( IncInsertUpdate )
- 插入并更新和删除:您必须实现一个有点复杂逻辑( IncInsertUpdateDelete )
- Insert & Update only: You can use Lookup Component (IncInsertUpdate)
- Insert & Update & Delete: You'll have to implement a bit more complex logic (IncInsertUpdateDelete)
- 如果在尺寸设计中实施VS2017,VS2017是否可以识别/兑现缓慢变化的尺寸?
是的,有一个缓慢变化的尺寸组件可用于处理SCD。
Yes, there is Slowly Changing Dimension Component that you can use to handle SCDs.
这篇关于如何仅针对新事实或更新的维计划SSAS多维数据集刷新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!