SQL 多维数据集处理窗口

发布于 2024-07-11 20:49:55 字数 139 浏览 5 评论 0原文

我有 Dim Tables、Fact Tables、ETL 和一个立方体。 我现在希望确保我的多维数据集仅保存前 2 个月的数据。 是否应该通过强制我的事实表仅保存 2 个月的数据并执行“完整过程”来完成此操作,或者是否有办法从我的多维数据集中删除过时的数据?

I've got Dim Tables, Fact Tables, ETL and a cube. I'm now looking to make sure my cube only holds the previous 2 months worth of data. Should this be done by forcing my fact table to hold only 2 months of data and doing a "full process", or is there a way to trim outdated data from my cube?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

奶气 2024-07-18 20:49:55

您的数据已经通过 ETL 进行了维度化,并且您在其之上构建了一个多维数据集?

您希望保留事实表中的数据,但不一定需要多维数据集中过去 2 个月以上的数据?

如果您甚至不想保留数据,我只需按日期清除事实表即可。 因为无论如何您可能都希望回收该空间。

但多维数据集构建中也有一些设置 - 或者根据仅公开最近两个月的动态视图构建多维数据集 - 然后可以在清除基础事实表之前完成多维数据集(重新)构建。

您还可以查看按日期分区:

http://www.mssqltips.com/tip .asp?tip=1549

http:// www.sqlmag.com/Articles/ArticleID/100645/100645.html?Ad=1

Your data is already dimensionalized through ETL and you have a cube built on top of it?

And you want to retain the data in the Fact table, but not necessarily need it in the cube for more than the last 2 months?

If you don't even want to retain the data, I would simply purge the fact table by date. Because you're probably going to want that space reclaimed anyway.

But there are also settings in the cube build - or build your cube off dynamic views that only expose the last two months - then the cube (re-)build can be done before you've even purged the underlying fact tables.

You can also look into partitioning by date:

http://www.mssqltips.com/tip.asp?tip=1549

http://www.sqlmag.com/Articles/ArticleID/100645/100645.html?Ad=1

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文