Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
Data Warehousing
»
Analysis Services
»
Why is the results take longer in MDX than...
Why is the results take longer in MDX than TSQL?
Rate Topic
Display Mode
Topic Options
Author
Message
Wood Chuck
Wood Chuck
Posted Tuesday, January 15, 2013 3:52 PM
Forum Newbie
Group: General Forum Members
Last Login: Tuesday, February 05, 2013 12:41 PM
Points: 8,
Visits: 93
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 DimGeographic
order by STATEABBRV, COUNTYNAME, CITY, POSTALCODE
Post #1407512
Koen Verbeeck
Koen Verbeeck
Posted Wednesday, January 16, 2013 1:06 AM
SSCrazy Eights
Group: General Forum Members
Last Login: Today @ 6:39 AM
Points: 9,376,
Visits: 6,472
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.
How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?
Member of
LinkedIn
. My blog at
LessThanDot
.
MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1407649
blom0344
blom0344
Posted Wednesday, January 16, 2013 8:37 AM
Valued Member
Group: General Forum Members
Last Login: Friday, April 19, 2013 3:10 AM
Points: 67,
Visits: 316
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.
Post #1407880
Koen Verbeeck
Koen Verbeeck
Posted Wednesday, January 16, 2013 2:32 PM
SSCrazy Eights
Group: General Forum Members
Last Login: Today @ 6:39 AM
Points: 9,376,
Visits: 6,472
blom0344 (1/16/2013)
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.
SSAS holds caches for MDX as well.
Clear the Analysis Services Caches
How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?
Member of
LinkedIn
. My blog at
LessThanDot
.
MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1408082
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.