﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Data Warehousing / Analysis Services  / Why is the results take longer in MDX than TSQL? / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Tue, 18 Jun 2013 20:42:02 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Why is the results take longer in MDX than TSQL?</title><link>http://www.sqlservercentral.com/Forums/Topic1407512-17-1.aspx</link><description>[quote][b]blom0344 (1/16/2013)[/b][hr]Did the T-sql take 5 seconds on the first execution? If not , then results may still be in the memory cache. The MDX may not have that advantage.[/quote]SSAS holds caches for MDX as well.[url=http://msdn.microsoft.com/en-us/library/hh230974.aspx]Clear the Analysis Services Caches[/url]</description><pubDate>Wed, 16 Jan 2013 14:32:18 GMT</pubDate><dc:creator>Koen Verbeeck</dc:creator></item><item><title>RE: Why is the results take longer in MDX than TSQL?</title><link>http://www.sqlservercentral.com/Forums/Topic1407512-17-1.aspx</link><description>Did the T-sql take 5 seconds on the first execution? If not , then results may still be in the memory cache. The MDX may not have that advantage.</description><pubDate>Wed, 16 Jan 2013 08:37:29 GMT</pubDate><dc:creator>blom0344</dc:creator></item><item><title>RE: Why is the results take longer in MDX than TSQL?</title><link>http://www.sqlservercentral.com/Forums/Topic1407512-17-1.aspx</link><description>Hard to tell without knowing the exact structures of the database and cube, but I do know SSAS is strong in showing aggregated data, not really in showing data dumps.</description><pubDate>Wed, 16 Jan 2013 01:06:45 GMT</pubDate><dc:creator>Koen Verbeeck</dc:creator></item><item><title>Why is the results take longer in MDX than TSQL?</title><link>http://www.sqlservercentral.com/Forums/Topic1407512-17-1.aspx</link><description>Can anyone tell me why this simple MDX query takes 9 seconds and TSQL takes 5 seconds?-------------------- MDX ------------------------------- select null on 0, {[Dim Geographic].[STATECODE].children * [Dim Geographic].[COUNTYNAME].children *[Dim Geographic].[CITY].children *[Dim Geographic].[POSTALCODE].children} on 1 from Cube;------------------TSQL----------------------------------select distinct STATEABBRV, COUNTYNAME, CITY, POSTALCODE from DimGeographicorder by STATEABBRV, COUNTYNAME, CITY, POSTALCODE</description><pubDate>Tue, 15 Jan 2013 15:52:02 GMT</pubDate><dc:creator>Wood Chuck</dc:creator></item></channel></rss>