To measure the performance of the query. We need to clear the SSAS cache, because the recent result will be stored in the cache memory. So the MDX query will quickly return the result set. To find out the correct timing of the query run. We need to clear the cache. Following is the XMLA query, will just work on the MDX query window.
XMLA Query:
<Batch xmlns="http://schemas.Microsoft.com/analysis services/2003/engine">
<ClearCache>
<Object>
<DatabaseID>Database ID</DatabaseID>
<CubeID> Cube ID </CubeID>
</Object>
</ClearCache>
</Batch>
How to find the Database ID:
- Click on the Analysis service database name
- Click on the properties
We can use the same way to fetch the Cube ID from the Cube properties.
Thanks,
Gowdhaman
No comments:
Post a Comment