Welcome, Guest
Please Login or Register.    Lost Password?

Feature Idea: Option to switch off results grid
(1 viewing) (1) Guest
Please post here just questions about MDX Studio. All other questions will be moved to "Analysis Services Forum".
Go to bottomPage: 1
TOPIC: Feature Idea: Option to switch off results grid
#906
Feature Idea: Option to switch off results grid 1 Year, 9 Months ago Karma: 3
I was recently profiling a large query with 15,000 rows and the query itself would run in about 13 seconds, but it would take MDX Studio a couple of minutes to populate the results grid. It would be nice if this could be sped up a little :) but it would also be nice to have an option to run the query in order to profile it without populating the results grid.
dgosbell
Moderator
Posts: 56
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#943
Re: Feature Idea: Option to switch off results grid 1 Year, 8 Months ago Karma: 1
Darren, MDX Studio already has this option ! If you hit the "Profile" button, it will profile the query on both cold and warm caches, but will not display the results. I use this feature all the time !
mosha
Admin
Posts: 278
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#967
Re: Feature Idea: Option to switch off results grid 1 Year, 8 Months ago Karma: 3
Thanks Mosha - scrap that idea :)

That was going to be the next thing I was going to run, but when just running the query took so long I did not even try the profiler as I knew that it did 2 executions - it did not even occur to me that the Profile option did not populate the results tab. We had captured this particular query from Reporting Services and I wanted to run it once to make sure that I had substituted the parameters in correctly.

Have you considered adding parameter support to MDX Studio?
dgosbell
Moderator
Posts: 56
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#968
Re: Feature Idea: Option to switch off results grid 1 Year, 8 Months ago Karma: 1
Yes, I have considered support for parametric queries in MDX Studio - this is why MDX Studio supports parametric queries since version 0.2.5 :) All the functionality of MDX Studio works fine with parametric queries - Execute, Profile, Debug, Parse, Format, Analyze etc.

The way MDX Studio supports parametric queries makes it very simple to take verbatim from the profiler trace and paste into MDX Studio editor. Here is an example for typical Reporting Services query:

Code:

WITH 
  MEMBER [Measures].[Profit] AS 
    [Measures].[Sales Amount] - [Measures].[Standard Product Cost] 
SELECT 
  NON EMPTY 
    {
      [Measures].[Internet Sales Amount]
     ,[Measures].[Internet Total Product Cost]
     ,[Measures].[Internet Order Quantity]
    } ON COLUMNS
FROM 
(
  SELECT 
    StrToSet
    (@ProductCategory
     ,CONSTRAINED
    ) ON COLUMNS
  FROM [Adventure Works]
)
WHERE 
  IIF
  (
    StrToSet(@ProductCategory,CONSTRAINED).Count = 1
   ,StrToSet
    (@ProductCategory
     ,CONSTRAINED
    )
   ,[Product].[Category].CurrentMember
  )
CELL PROPERTIES 
  VALUE
 ,BACK_COLOR
 ,FORE_COLOR
 ,FORMATTED_VALUE
 ,FORMAT_STRING
 ,FONT_NAME
 ,FONT_SIZE
 ,FONT_FLAGS;

<Parameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:schemas-microsoft-com:xml-analysis">
  <Parameter>
    <Name>ProductCategory</Name>
    <Value xsi:type="xsd:string">{ &#91;Product&#93;.&#91;Category&#93;.&amp;&#91;1&#93;,&#91;Product&#93;.&#91;Category&#93;.&amp;&#91;2&#93; }</Value>
  </Parameter>
</Parameters>

mosha
Admin
Posts: 278
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1541
Re: Feature Idea: Option to switch off results grid 10 Months ago Karma: 0
Hi Mosha
About executing with no results, I think it's a good functionality since it would only execute one time, instead of two as in the trace mode.
For very large querys it may be important to execute only one time since the perfmon tab gives enough useful information to start optimizing MDX and if people have to do it in production databases it becomes more important (I have different hardware in test and production servers, for instance). The trace mode is more useful for cold and warm cache execution (it's also important) and for partitioning schemes optimization. Besides, tracing also uses server resources.

So I have 4 suggestions regarding this matter:
- adding Execute Non Query option.
- adding Execute With no results (it parses the result to count rows and columns and show it in the perfmon tab) (I have some MDX results that kills my computer memory)
- In the trace mode it would be useful to have the with results option.
- It would also be nice to have the option of counting the number of rows and columns in the result without showing it.
SkullKiller
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1