BI备忘录

BI,SSIS,SSAS,SSRS
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

ssas2008:clear cache

Posted on 2010-08-26 10:28  安德鲁  阅读(274)  评论(2)    收藏  举报

调优时,有时需要清空缓存来对比。使用xmla命令clearcache来完成。

 

清空整个库的缓存:

<ClearCache xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
<Object>
<DatabaseID>Adventure Works DW</DatabaseID>
</Object>
</ClearCache>
清空单个cube的缓存:

<ClearCache xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
<Object>
<DatabaseID>Adventure Works DW</DatabaseID>
<CubeID>Adventure Works DW</CubeID>
</Object>
</ClearCache>
不支持清除单个分区的缓存。

 

 

参考:

http://www.ssas-info.com/analysis-services-faq/27-mdx/133-mdx-how-do-i-clear-analysis-services-ssas-database-cache