Friday, March 30, 2012
profiler and showplan
plan in the textdata field - but it's not there.
Is there some event class or other field or something that must also
be included that I've missed?
Thanks.
Josh
Which SQL profiler template have you selected? One of the template (standard)
displays TextData field.
Thanks
GYK
"JXStern" wrote:
> I turn on profiler Performance/Execution Plan, and expect to see the
> plan in the textdata field - but it's not there.
> Is there some event class or other field or something that must also
> be included that I've missed?
> Thanks.
> Josh
>
|||On Wed, 27 Oct 2004 16:03:02 -0700, GYK
<GYK@.discussions.microsoft.com> wrote:
>Which SQL profiler template have you selected? One of the template (standard)
>displays TextData field.
I am capturing/displaying the textdata field, but it's empty on the
showplan lines, and in the statement lines I still see just the
statements. I used the SQLProfilerStandard template, and one of my
own, didn't seem to matter. I added all the TSQL events, that didn't
help either.
J.
[vbcol=seagreen]
>Thanks
>GYK
>"JXStern" wrote:
|||You have to capture the Binary Data to see the Showplan output.
HTH
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"JXStern" <JXSternChangeX2R@.gte.net> wrote in message
news:9ta0o0d664jpr8ihme1kb2kngna64f721q@.4ax.com...
> On Wed, 27 Oct 2004 16:03:02 -0700, GYK
> <GYK@.discussions.microsoft.com> wrote:
> I am capturing/displaying the textdata field, but it's empty on the
> showplan lines, and in the statement lines I still see just the
> statements. I used the SQLProfilerStandard template, and one of my
> own, didn't seem to matter. I added all the TSQL events, that didn't
> help either.
> J.
>
>
|||On Wed, 27 Oct 2004 16:27:33 -0700, "Kalen Delaney"
<replies@.public_newsgroups.com> wrote:
>You have to capture the Binary Data to see the Showplan output.
Wait a minute. I changed the template to capture BinaryData field,
and sure enough, now I got the Showplan tree - in the TextData field!
So I removed the BinaryData field, and now I *still* get the Showplan
tree in the TextData field. Even after I exit and restart Profiler!
Is this some weird bug in SQL2K, that you have to first ask for the
BinaryData, then you can stop asking for it, to get the Showplan tree?
Weird.
But it worked, so thanks!
Josh
|||That IS weird. When I remove the binary data column I don't get the showplan
anymore.
HTH
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"JXStern" <JXSternChangeX2R@.gte.net> wrote in message
news:ebf0o0pldmaluufjgic4lstkb6ovectqob@.4ax.com...
> On Wed, 27 Oct 2004 16:27:33 -0700, "Kalen Delaney"
> <replies@.public_newsgroups.com> wrote:
> Wait a minute. I changed the template to capture BinaryData field,
> and sure enough, now I got the Showplan tree - in the TextData field!
> So I removed the BinaryData field, and now I *still* get the Showplan
> tree in the TextData field. Even after I exit and restart Profiler!
> Is this some weird bug in SQL2K, that you have to first ask for the
> BinaryData, then you can stop asking for it, to get the Showplan tree?
> Weird.
> But it worked, so thanks!
> Josh
>
|||What event are you capturing... showplan or execution plan?
HTH
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"JXStern" <JXSternChangeX2R@.gte.net> wrote in message
news:ebf0o0pldmaluufjgic4lstkb6ovectqob@.4ax.com...
> On Wed, 27 Oct 2004 16:27:33 -0700, "Kalen Delaney"
> <replies@.public_newsgroups.com> wrote:
> Wait a minute. I changed the template to capture BinaryData field,
> and sure enough, now I got the Showplan tree - in the TextData field!
> So I removed the BinaryData field, and now I *still* get the Showplan
> tree in the TextData field. Even after I exit and restart Profiler!
> Is this some weird bug in SQL2K, that you have to first ask for the
> BinaryData, then you can stop asking for it, to get the Showplan tree?
> Weird.
> But it worked, so thanks!
> Josh
>
|||On Wed, 27 Oct 2004 17:58:04 -0700, "Kalen Delaney"
<replies@.public_newsgroups.com> wrote:
>What event are you capturing... showplan or execution plan?
Execution plan.
J.
|||On Wed, 27 Oct 2004 17:48:58 -0700, "Kalen Delaney"
<replies@.public_newsgroups.com> wrote:
>That IS weird. When I remove the binary data column I don't get the showplan
>anymore.
But when you get it, is it in the binary or text field?
|||JXStern wrote:
> On Wed, 27 Oct 2004 17:58:04 -0700, "Kalen Delaney"
> <replies@.public_newsgroups.com> wrote:
> Execution plan.
> J.
Execution Plan only requires TextData. Show Plan, if I'm not mistaken,
requires BinaryData.
David Gugick
Imceda Software
www.imceda.com
sql
profiler and showplan
plan in the textdata field - but it's not there.
Is there some event class or other field or something that must also
be included that I've missed?
Thanks.
JoshWhich SQL profiler template have you selected? One of the template (standard
)
displays TextData field.
Thanks
GYK
"JXStern" wrote:
> I turn on profiler Performance/Execution Plan, and expect to see the
> plan in the textdata field - but it's not there.
> Is there some event class or other field or something that must also
> be included that I've missed?
> Thanks.
> Josh
>|||On Wed, 27 Oct 2004 16:03:02 -0700, GYK
<GYK@.discussions.microsoft.com> wrote:
>Which SQL profiler template have you selected? One of the template (standar
d)
>displays TextData field.
I am capturing/displaying the textdata field, but it's empty on the
showplan lines, and in the statement lines I still see just the
statements. I used the SQLProfilerStandard template, and one of my
own, didn't seem to matter. I added all the TSQL events, that didn't
help either.
J.
[vbcol=seagreen]
>Thanks
>GYK
>"JXStern" wrote:
>|||You have to capture the Binary Data to see the Showplan output.
HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"JXStern" <JXSternChangeX2R@.gte.net> wrote in message
news:9ta0o0d664jpr8ihme1kb2kngna64f721q@.
4ax.com...
> On Wed, 27 Oct 2004 16:03:02 -0700, GYK
> <GYK@.discussions.microsoft.com> wrote:
> I am capturing/displaying the textdata field, but it's empty on the
> showplan lines, and in the statement lines I still see just the
> statements. I used the SQLProfilerStandard template, and one of my
> own, didn't seem to matter. I added all the TSQL events, that didn't
> help either.
> J.
>
>
>|||On Wed, 27 Oct 2004 16:27:33 -0700, "Kalen Delaney"
<replies@.public_newsgroups.com> wrote:
>You have to capture the Binary Data to see the Showplan output.
Wait a minute. I changed the template to capture BinaryData field,
and sure enough, now I got the Showplan tree - in the TextData field!
So I removed the BinaryData field, and now I *still* get the Showplan
tree in the TextData field. Even after I exit and restart Profiler!
Is this some weird bug in SQL2K, that you have to first ask for the
BinaryData, then you can stop asking for it, to get the Showplan tree?
Weird.
But it worked, so thanks!
Josh|||That IS weird. When I remove the binary data column I don't get the showplan
anymore.
HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"JXStern" <JXSternChangeX2R@.gte.net> wrote in message
news:ebf0o0pldmaluufjgic4lstkb6ovectqob@.
4ax.com...
> On Wed, 27 Oct 2004 16:27:33 -0700, "Kalen Delaney"
> <replies@.public_newsgroups.com> wrote:
> Wait a minute. I changed the template to capture BinaryData field,
> and sure enough, now I got the Showplan tree - in the TextData field!
> So I removed the BinaryData field, and now I *still* get the Showplan
> tree in the TextData field. Even after I exit and restart Profiler!
> Is this some weird bug in SQL2K, that you have to first ask for the
> BinaryData, then you can stop asking for it, to get the Showplan tree?
> Weird.
> But it worked, so thanks!
> Josh
>|||What event are you capturing... showplan or execution plan?
HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"JXStern" <JXSternChangeX2R@.gte.net> wrote in message
news:ebf0o0pldmaluufjgic4lstkb6ovectqob@.
4ax.com...
> On Wed, 27 Oct 2004 16:27:33 -0700, "Kalen Delaney"
> <replies@.public_newsgroups.com> wrote:
> Wait a minute. I changed the template to capture BinaryData field,
> and sure enough, now I got the Showplan tree - in the TextData field!
> So I removed the BinaryData field, and now I *still* get the Showplan
> tree in the TextData field. Even after I exit and restart Profiler!
> Is this some weird bug in SQL2K, that you have to first ask for the
> BinaryData, then you can stop asking for it, to get the Showplan tree?
> Weird.
> But it worked, so thanks!
> Josh
>|||On Wed, 27 Oct 2004 17:58:04 -0700, "Kalen Delaney"
<replies@.public_newsgroups.com> wrote:
>What event are you capturing... showplan or execution plan?
Execution plan.
J.|||On Wed, 27 Oct 2004 17:48:58 -0700, "Kalen Delaney"
<replies@.public_newsgroups.com> wrote:
>That IS weird. When I remove the binary data column I don't get the showpla
n
>anymore.
But when you get it, is it in the binary or text field?|||JXStern wrote:
> On Wed, 27 Oct 2004 17:58:04 -0700, "Kalen Delaney"
> <replies@.public_newsgroups.com> wrote:
> Execution plan.
> J.
Execution Plan only requires TextData. Show Plan, if I'm not mistaken,
requires BinaryData.
David Gugick
Imceda Software
www.imceda.com
profiler and showplan
plan in the textdata field - but it's not there.
Is there some event class or other field or something that must also
be included that I've missed?
Thanks.
JoshWhich SQL profiler template have you selected? One of the template (standard)
displays TextData field.
Thanks
GYK
"JXStern" wrote:
> I turn on profiler Performance/Execution Plan, and expect to see the
> plan in the textdata field - but it's not there.
> Is there some event class or other field or something that must also
> be included that I've missed?
> Thanks.
> Josh
>|||On Wed, 27 Oct 2004 16:03:02 -0700, GYK
<GYK@.discussions.microsoft.com> wrote:
>Which SQL profiler template have you selected? One of the template (standard)
>displays TextData field.
I am capturing/displaying the textdata field, but it's empty on the
showplan lines, and in the statement lines I still see just the
statements. I used the SQLProfilerStandard template, and one of my
own, didn't seem to matter. I added all the TSQL events, that didn't
help either.
J.
>Thanks
>GYK
>"JXStern" wrote:
>> I turn on profiler Performance/Execution Plan, and expect to see the
>> plan in the textdata field - but it's not there.
>> Is there some event class or other field or something that must also
>> be included that I've missed?
>> Thanks.
>> Josh
>>|||You have to capture the Binary Data to see the Showplan output.
--
HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"JXStern" <JXSternChangeX2R@.gte.net> wrote in message
news:9ta0o0d664jpr8ihme1kb2kngna64f721q@.4ax.com...
> On Wed, 27 Oct 2004 16:03:02 -0700, GYK
> <GYK@.discussions.microsoft.com> wrote:
>>Which SQL profiler template have you selected? One of the template
>>(standard)
>>displays TextData field.
> I am capturing/displaying the textdata field, but it's empty on the
> showplan lines, and in the statement lines I still see just the
> statements. I used the SQLProfilerStandard template, and one of my
> own, didn't seem to matter. I added all the TSQL events, that didn't
> help either.
> J.
>
>>Thanks
>>GYK
>>"JXStern" wrote:
>> I turn on profiler Performance/Execution Plan, and expect to see the
>> plan in the textdata field - but it's not there.
>> Is there some event class or other field or something that must also
>> be included that I've missed?
>> Thanks.
>> Josh
>>
>|||On Wed, 27 Oct 2004 16:27:33 -0700, "Kalen Delaney"
<replies@.public_newsgroups.com> wrote:
>You have to capture the Binary Data to see the Showplan output.
Wait a minute. I changed the template to capture BinaryData field,
and sure enough, now I got the Showplan tree - in the TextData field!
So I removed the BinaryData field, and now I *still* get the Showplan
tree in the TextData field. Even after I exit and restart Profiler!
Is this some weird bug in SQL2K, that you have to first ask for the
BinaryData, then you can stop asking for it, to get the Showplan tree?
Weird.
But it worked, so thanks!
Josh|||That IS weird. When I remove the binary data column I don't get the showplan
anymore.
--
HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"JXStern" <JXSternChangeX2R@.gte.net> wrote in message
news:ebf0o0pldmaluufjgic4lstkb6ovectqob@.4ax.com...
> On Wed, 27 Oct 2004 16:27:33 -0700, "Kalen Delaney"
> <replies@.public_newsgroups.com> wrote:
>>You have to capture the Binary Data to see the Showplan output.
> Wait a minute. I changed the template to capture BinaryData field,
> and sure enough, now I got the Showplan tree - in the TextData field!
> So I removed the BinaryData field, and now I *still* get the Showplan
> tree in the TextData field. Even after I exit and restart Profiler!
> Is this some weird bug in SQL2K, that you have to first ask for the
> BinaryData, then you can stop asking for it, to get the Showplan tree?
> Weird.
> But it worked, so thanks!
> Josh
>|||What event are you capturing... showplan or execution plan?
--
HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"JXStern" <JXSternChangeX2R@.gte.net> wrote in message
news:ebf0o0pldmaluufjgic4lstkb6ovectqob@.4ax.com...
> On Wed, 27 Oct 2004 16:27:33 -0700, "Kalen Delaney"
> <replies@.public_newsgroups.com> wrote:
>>You have to capture the Binary Data to see the Showplan output.
> Wait a minute. I changed the template to capture BinaryData field,
> and sure enough, now I got the Showplan tree - in the TextData field!
> So I removed the BinaryData field, and now I *still* get the Showplan
> tree in the TextData field. Even after I exit and restart Profiler!
> Is this some weird bug in SQL2K, that you have to first ask for the
> BinaryData, then you can stop asking for it, to get the Showplan tree?
> Weird.
> But it worked, so thanks!
> Josh
>|||On Wed, 27 Oct 2004 17:58:04 -0700, "Kalen Delaney"
<replies@.public_newsgroups.com> wrote:
>What event are you capturing... showplan or execution plan?
Execution plan.
J.|||On Wed, 27 Oct 2004 17:48:58 -0700, "Kalen Delaney"
<replies@.public_newsgroups.com> wrote:
>That IS weird. When I remove the binary data column I don't get the showplan
>anymore.
But when you get it, is it in the binary or text field?|||JXStern wrote:
> On Wed, 27 Oct 2004 17:58:04 -0700, "Kalen Delaney"
> <replies@.public_newsgroups.com> wrote:
>> What event are you capturing... showplan or execution plan?
> Execution plan.
> J.
Execution Plan only requires TextData. Show Plan, if I'm not mistaken,
requires BinaryData.
--
David Gugick
Imceda Software
www.imceda.com|||I just found this... not that it gives a whole lot more info, but at least
it's documented:
http://support.microsoft.com/default.aspx?scid=kb;en-us;272439
--
HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"David Gugick" <davidg-nospam@.imceda.com> wrote in message
news:OCy3cfKvEHA.1988@.TK2MSFTNGP12.phx.gbl...
> JXStern wrote:
>> On Wed, 27 Oct 2004 17:58:04 -0700, "Kalen Delaney"
>> <replies@.public_newsgroups.com> wrote:
>> What event are you capturing... showplan or execution plan?
>> Execution plan.
>> J.
> Execution Plan only requires TextData. Show Plan, if I'm not mistaken,
> requires BinaryData.
> --
> David Gugick
> Imceda Software
> www.imceda.com|||On Thu, 28 Oct 2004 22:46:23 -0700, "Kalen Delaney"
<replies@.public_newsgroups.com> wrote:
>I just found this... not that it gives a whole lot more info, but at least
>it's documented:
>http://support.microsoft.com/default.aspx?scid=kb;en-us;272439
Kinky (eg, a bug) but it doesn't explain the even weirder case I saw.
J.|||But we just have your word for it, right.
Have you been able to duplicate it?
;-)
--
HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"JXStern" <JXSternChangeX2R@.gte.net> wrote in message
news:vjs7o0lvo1o2799j6033qlc1ibk6ab9uo9@.4ax.com...
> On Thu, 28 Oct 2004 22:46:23 -0700, "Kalen Delaney"
> <replies@.public_newsgroups.com> wrote:
>>I just found this... not that it gives a whole lot more info, but at least
>>it's documented:
>>http://support.microsoft.com/default.aspx?scid=kb;en-us;272439
> Kinky (eg, a bug) but it doesn't explain the even weirder case I saw.
> J.
>|||On Sat, 30 Oct 2004 15:19:57 -0700, "Kalen Delaney"
<replies@.public_newsgroups.com> wrote:
>But we just have your word for it, right.
>Have you been able to duplicate it?
>;-)
Now that you ask, no.
I just tried it, and on a clean startup, this time I *did* get the
execution plan - *without* also getting the binary!
Looks random. Isn't that special?
:)
J.
Profiler and performance
night long.
My concern is how can profiler trace effect my databse performance?
Thanks.Sinke
http://www.sql-server-performance.com/sql_server_profiler_tips.asp
"Sinke Pinke" <sinkepinke@.REM_OVEnet.hr> wrote in message
news:e8dchs$539$1@.ss408.t-com.hr...
> I'm planning on running a profiler trace on my DW database. It will run
> all
> night long.
> My concern is how can profiler trace effect my databse performance?
> Thanks.
>|||If you can :
1)Run the Profiler from another machine
2)Be careful in the data you caollect i.e specify events , and use filters,
particuarly the database(s) you wnat to capture data on. Also, you may not
want to capture data of every single event
3)Save the data to a file on your hard disk , rather than a db table
Jack Vamvas
___________________________________
Receive free SQL tips - www.ciquery.com/sqlserver.htm
___________________________________
"Sinke Pinke" <sinkepinke@.REM_OVEnet.hr> wrote in message
news:e8dchs$539$1@.ss408.t-com.hr...
> I'm planning on running a profiler trace on my DW database. It will run
all
> night long.
> My concern is how can profiler trace effect my databse performance?
> Thanks.
>sql
Profiler and performance
night long.
My concern is how can profiler trace effect my databse performance?
Thanks.Sinke
http://www.sql-server-performance.c...ofiler_tips.asp
"Sinke Pinke" <sinkepinke@.REM_OVEnet.hr> wrote in message
news:e8dchs$539$1@.ss408.t-com.hr...
> I'm planning on running a profiler trace on my DW database. It will run
> all
> night long.
> My concern is how can profiler trace effect my databse performance?
> Thanks.
>|||If you can :
1)Run the Profiler from another machine
2)Be careful in the data you caollect i.e specify events , and use filters,
particuarly the database(s) you wnat to capture data on. Also, you may not
want to capture data of every single event
3)Save the data to a file on your hard disk , rather than a db table
Jack Vamvas
___________________________________
Receive free SQL tips - www.ciquery.com/sqlserver.htm
___________________________________
"Sinke Pinke" <sinkepinke@.REM_OVEnet.hr> wrote in message
news:e8dchs$539$1@.ss408.t-com.hr...
> I'm planning on running a profiler trace on my DW database. It will run
all
> night long.
> My concern is how can profiler trace effect my databse performance?
> Thanks.
>
Wednesday, March 28, 2012
Profiler
In other words, if you have one row and lots of columns in profiler for
every page-lock event, then the hit will be significant. On the other hand,
if you only trace infrequent events, and capture few columns, like say,
login/logout, then the penalty will be negligable.
--
Kevin Connell, MCDBA
----
The views expressed here are my own
and not of my employer.
----
"Andrew" <a@.b.com> wrote in message
news:085901c38cdb$e56df160$a001280a@.phx.gbl...
> How big is the performance penalty for running profiler?
Professional edition vs. SQL Server
i am using the professional edition (since i'm running it on a windows 2000 pro machine), but i wanted to know what performance gains there are between the pro. edition vs. the real sql server that would be run on a windows 2000 advanced server machine
currently i'm trying to write/query an enormous amount of data. the bottleneck is now the database, but before i go through the trouble of rebuilding a maching with 2000 server, i wanted to know what the "gains" were and if it would even be worth the time to do this
Thanks
mikeOOPS... i meant PERSONAL and not professional edition.|||Personal Edition has the same performance delimiter as MSDE, i.e. 25
concurrent users is really pushing it. It has no limit on the database size
though, but you need a full SQL Server license to actually be allowed to use
Personal Edition on a separate machine. You can't use personal Edition
separately. I.e. what you are doing probably violates the licensing
agreement.
--
Jacco Schalkwijk
SQL Server MVP
"mike" <anonymous@.discussions.microsoft.com> wrote in message
news:23137F31-435A-4FF0-9AAB-9ACC5190E48B@.microsoft.com...
> OOPS... i meant PERSONAL and not professional edition.
Friday, March 23, 2012
ProClarity Desktop Professional 6.3 - Totals Performance
I am using PDP 6.3. When I try to put a total on my grid, it basically kills ProClarity. I know there was a problem with Totals in older versions of PDP, but I thought it would have been fixed by now. Is there some workaround or hotfix?
Thanks,
Linda Fleming
Hello Linda! I have not seen performance issues with ProClarity totals but can you send some more information regarding your problem?
Can you recreate the problem on the Adventure Works sample cube or can you tell us more about the structure of your cube?
Regards
Thomas Ivarsson
|||Thomas,
(Note: I tried using a partition but did not make any difference because I think the problem is with the large number of dimension rows and not the fact table)
factTable: 200,000 rows.
I want subtotals in my view by Stage, but the query never returns.
All Companies has 1614 rows
All Opportunities has 406 rows
Here is my MDX:
SELECT NON EMPTY { [Next 3 Months Anticipated Close] } ON COLUMNS ,
NON EMPTY { { { [Stage].[Stage].&[10 - Confirmed], [Stage].[Stage].&[20 - Qualified], [Stage].[Stage].&[30 - Proposed] } * { DESCENDANTS( [Company].[Company].[All Companies], [Company].[Company].[Company] ) } * { DESCENDANTS( [Opportunity].[Opportunity].[All Opportunities], , LEAVES ) } } } ON ROWS
FROM [Daily Pipeline Snapshot]
WHERE ( [Measures].[Opportunity Value], [Sales Rep].[Sales Rep].&[TAYLOR], [Opportunity Status].[Opportunity Status].[Op Status].&[Open], [Probability].[Probability Description].[All Probability] )
CELL PROPERTIES VALUE, FORMATTED_VALUE, CELL_ORDINAL
I can send you my cube if this would expedite things.
|||Hello Linda. I think that the problem relates to that you crossjoin several dimensions, one of them at the leaf level.
I do not know how many members you have in each dimensions but if you can do subtotals on the Adventure Works cube it is probably the design of the cube that decides this.
If you remove some dimensions in the crossjoin and only start with the first two? Will it work?
HTH
Thomas Ivarsson
|||Hi,
There isn't a work around or hotfix for the problem, we had the same problem and users have been banded from including them in their queries.
Most of the time you don't need to use ProClarity's Total options, if you are selecting every child of an attribute, you can just include the all level as well and that will give you a total e.g.
All Opps
-opp1
-opp2
-opp3
SELECT { [Measures].[Measure1] } ON COLUMNS ,
{ [Dim].[Opps].[All Opps], [Dim].[Opps].&[Opp1], [Dim].[Opps].&[Opp2],[Dim].[Opps].&[Opp3] } ON ROWS
FROM [fact]
would give you an all level (total)
Measure
All 20
opp1 5
opp2 5
opp3 10
If you're not using all the members in the attribute, I wouldn't let ProClarity build your MDX statement with totals. It ends up writing the most inefficient code ever, hence why proclarity dies. Perhaps write your own MDX and paste it in the MDX viewer.
HTH
Matt
|||Good point Mark but if the subtotal feature is usable or useless depends on how many cells that you call with several dimensions on an axis and on the leaf level.
No tool can manage that!
Regards
Thomas Ivarsson
|||I wasn't really saying it was, I was just impling that ProClarity generates rubbish code. I am sure some careful planning of a report or generating your own MDX is more efficent than using ProClarity's total functions.
I was perhaps offereing a work around for the problem seeing as there wasn't a fix.
Mark AKA Matt
|||Hello Matt. I will try your solution.
The problem with your approach is that your own MDX will be changed to ProClarity MDX as soon as a user start to change your report. Your solution will probably work well with SSRS2005 or if you publish static ProClarity reports.
I have published several complaints about ProClarity's implementation of MDX on my blog.
Regards
Thomas Ivarsson
|||Matt,
Thank you for your comments. Our company has been struggling with the Totals for several years and just keep hoping it gets fixed. I notice it uses the Aggregate function. Maybe SUM would be better? I will keep working on it, but Thomas has a good point that you can't start analyzing the view. If it is a static view on the dashboard I suppose custom MDX would work.
Linda
Thomas,
I took off the 3rd dimension (Opportunity) and the subtotals worked. Here is my MDX:
WITH MEMBER [Company].[Company].[All Companies].[ Subtotal]
AS ' AGGREGATE( EXISTING
{ DESCENDANTS( [Company].[Company].[All Companies], [Company].[Company].[Company] ) }) ',
SOLVE_ORDER = 1000
SELECT NON EMPTY { [Next 3 Months Anticipated Close] } ON COLUMNS ,
NON EMPTY { { { { [Stage].[Stage].&[10 - Confirmed], [Stage].[Stage].&[20 - Qualified], [Stage].[Stage].&[30 - Proposed] } } * { { [Company].[Company].[All Companies].[ Subtotal] }, { DESCENDANTS( [Company].[Company].[All Companies], [Company].[Company].[Company] ) } } } } ON ROWS
FROM [Daily Pipeline Snapshot]
WHERE ( [Measures].[Opportunity Value], [Sales Rep].[Sales Rep].[All Sales Rep], [Opportunity Status].[Opportunity Status].[Op Status].&[Open], [Probability].[Probability Description].[All Probability] )
CELL PROPERTIES VALUE, FORMATTED_VALUE, CELL_ORDINAL
However, now, I don't know what to try next since I really need that last dimension. Is there a possible solution? I would really like to send you my cube and let you experiment with it. Is that an option?
Linda
|||Hi,
Still a little confused by what you are both saying, as I can produce something identical to what you are suggesting in ProClarity and still slice and dice it afterwards. So that wouldn't imply it was static.
e,g, You code looks something like:
Code Snippet
WITH MEMBER [Campaign].[Campaign Region].[All Campaigns].[ Subtotal]
AS
' AGGREGATE( EXISTING { [Campaign].[Campaign Region].[All Campaigns].CHILDREN }) ',
SOLVE_ORDER = 1000
SELECT { [Measures].[Charge Out] } ON COLUMNS ,
NON EMPTY { { [Campaign].[Regular Campaign Flag].&[0],
[Campaign].[Regular Campaign Flag].&[1.] } *
{ { [Campaign].[Campaign Region].[All Campaigns].CHILDREN },
{ [Campaign].[Campaign Region].[All Campaigns].[ Subtotal] } } } ON ROWS
FROM [Self Service Prototype 3]
CELL PROPERTIES VALUE, FORMATTED_VALUE, CELL_ORDINAL
mine looks something like
Code Snippet
SELECT { [Measures].[Charge Out] } ON COLUMNS ,
NON EMPTY { { [Campaign].[Regular Campaign Flag].&[0],
[Campaign].[Regular Campaign Flag].&[1.] } *
{ { [Campaign].[Campaign Region].[All Campaigns]},
{ [Campaign].[Campaign Region].[All Campaigns].children } } } ON ROWS
FROM [Self Service Prototype 3]
CELL PROPERTIES VALUE, FORMATTED_VALUE, CELL_ORDINAL
They both produce the same results and I can slice it later on. I didn't write the code; I used ProClarity to generate it, so there is no reformatting. Which I know is an issue if you start having drop down slicers or usign subcubes. The performance hit is less as well with mine, on a cold cache the top one ran 13secs lower one 3 secs.
The only difference is I have an "All level" at the top and you have a "sub total" at the bottom.
The only down side to it as far as i can see it is if you don't include all the members of the dimension then the "All level" doesn't work.
And no matter what you code to fix the issue, as soon as you drill into something ProClarity will revert it back to using its way of MDX. So you could have a fancy quick query on the first page but as soon as you drill into a level, you still going to lose your code and perhaps incur a performance hit. Which I found out when I drilled into mine, ProClarity reverted it back to using subtotals.
You could always try caching the results (common ones) that way when your uses run their queries they hit the cache first. I believe chris webb has a blog on cache warming.
Matt
|||Hello Linda! This one
Code Snippet
{ [Next 3 Months Anticipated Close] } on columns is that a calculated member, calculated measure, named set or dimension member?You can send me the cube but the problem is that we cannot change ProClarity's MDX behaviour. Have you tried the same view/query in Excel 2007? I think you can download a trial version only to see if there is a difference between these clients.
Regards
Thomas Ivarsson
|||Thomas,
[Next 3 Months Anticipated Close] is a named set.
STRTOSET(
"[Anticipated Close Date].[Hierarchy].[Month].&["
+ Format(Now(), "yyyy") + Format(Now(), "MM") + "].Item(0):
[Anticipated Close Date].[Hierarchy].[Month].&["
+ Format(Now(), "yyyy") + Format(Now(), "MM") + "].Item(0).Lead(2)")
Where can I send the cube? I would like you to look at it and see if you get the same behavior I do.
Can Excel 2007 read cubes?
Linda
|||Linda! Excel2007 supports all SSAS2005 features except writeback. Try that option first and see if it helps.
It can reveal if it is ProClarity's MDX that is the problem.
How large is the cube? If it is large you may have to place it on an FTP-site.
If you look at my profile you can see my email.
STRTOSET is not good for performance. Is that a dynamic,running month, set?
Regards
Thomas Ivarsson
Regards
Thomas Ivarsson
|||Thomas,
We have Excel2007. I will install it and try it.
The data warehouse is 10,500 KB.
Yes, it is a dynamic running month set. What can I use instead of STRTOSET?
Thanks,
Linda
|||Linda! I have an example here: http://thomasianalytics.spaces.live.com/blog/cns!B6B6A40B93AE1393!352.entryThere are many other ways to solve this.
I think you can send the cube directly.
Regards
Thomas IvarssonProClarity Desktop Professional 6.3 - Totals Performance
I am using PDP 6.3. When I try to put a total on my grid, it basically kills ProClarity. I know there was a problem with Totals in older versions of PDP, but I thought it would have been fixed by now. Is there some workaround or hotfix?
Thanks,
Linda Fleming
Hello Linda! I have not seen performance issues with ProClarity totals but can you send some more information regarding your problem?
Can you recreate the problem on the Adventure Works sample cube or can you tell us more about the structure of your cube?
Regards
Thomas Ivarsson
|||Thomas,
(Note: I tried using a partition but did not make any difference because I think the problem is with the large number of dimension rows and not the fact table)
factTable: 200,000 rows.
I want subtotals in my view by Stage, but the query never returns.
All Companies has 1614 rows
All Opportunities has 406 rows
Here is my MDX:
SELECT NON EMPTY { [Next 3 Months Anticipated Close] } ON COLUMNS ,
NON EMPTY { { { [Stage].[Stage].&[10 - Confirmed], [Stage].[Stage].&[20 - Qualified], [Stage].[Stage].&[30 - Proposed] } * { DESCENDANTS( [Company].[Company].[All Companies], [Company].[Company].[Company] ) } * { DESCENDANTS( [Opportunity].[Opportunity].[All Opportunities], , LEAVES ) } } } ON ROWS
FROM [Daily Pipeline Snapshot]
WHERE ( [Measures].[Opportunity Value], [Sales Rep].[Sales Rep].&[TAYLOR], [Opportunity Status].[Opportunity Status].[Op Status].&[Open], [Probability].[Probability Description].[All Probability] )
CELL PROPERTIES VALUE, FORMATTED_VALUE, CELL_ORDINAL
I can send you my cube if this would expedite things.
|||Hello Linda. I think that the problem relates to that you crossjoin several dimensions, one of them at the leaf level.
I do not know how many members you have in each dimensions but if you can do subtotals on the Adventure Works cube it is probably the design of the cube that decides this.
If you remove some dimensions in the crossjoin and only start with the first two? Will it work?
HTH
Thomas Ivarsson
|||Hi,
There isn't a work around or hotfix for the problem, we had the same problem and users have been banded from including them in their queries.
Most of the time you don't need to use ProClarity's Total options, if you are selecting every child of an attribute, you can just include the all level as well and that will give you a total e.g.
All Opps
-opp1
-opp2
-opp3
SELECT { [Measures].[Measure1] } ON COLUMNS ,
{ [Dim].[Opps].[All Opps], [Dim].[Opps].&[Opp1], [Dim].[Opps].&[Opp2],[Dim].[Opps].&[Opp3] } ON ROWS
FROM [fact]
would give you an all level (total)
Measure
All 20
opp1 5
opp2 5
opp3 10
If you're not using all the members in the attribute, I wouldn't let ProClarity build your MDX statement with totals. It ends up writing the most inefficient code ever, hence why proclarity dies. Perhaps write your own MDX and paste it in the MDX viewer.
HTH
Matt
|||Good point Mark but if the subtotal feature is usable or useless depends on how many cells that you call with several dimensions on an axis and on the leaf level.
No tool can manage that!
Regards
Thomas Ivarsson
|||I wasn't really saying it was, I was just impling that ProClarity generates rubbish code. I am sure some careful planning of a report or generating your own MDX is more efficent than using ProClarity's total functions.
I was perhaps offereing a work around for the problem seeing as there wasn't a fix.
Mark AKA Matt
|||Hello Matt. I will try your solution.
The problem with your approach is that your own MDX will be changed to ProClarity MDX as soon as a user start to change your report. Your solution will probably work well with SSRS2005 or if you publish static ProClarity reports.
I have published several complaints about ProClarity's implementation of MDX on my blog.
Regards
Thomas Ivarsson
|||Matt,
Thank you for your comments. Our company has been struggling with the Totals for several years and just keep hoping it gets fixed. I notice it uses the Aggregate function. Maybe SUM would be better? I will keep working on it, but Thomas has a good point that you can't start analyzing the view. If it is a static view on the dashboard I suppose custom MDX would work.
Linda
Thomas,
I took off the 3rd dimension (Opportunity) and the subtotals worked. Here is my MDX:
WITH MEMBER [Company].[Company].[All Companies].[ Subtotal]
AS ' AGGREGATE( EXISTING
{ DESCENDANTS( [Company].[Company].[All Companies], [Company].[Company].[Company] ) }) ',
SOLVE_ORDER = 1000
SELECT NON EMPTY { [Next 3 Months Anticipated Close] } ON COLUMNS ,
NON EMPTY { { { { [Stage].[Stage].&[10 - Confirmed], [Stage].[Stage].&[20 - Qualified], [Stage].[Stage].&[30 - Proposed] } } * { { [Company].[Company].[All Companies].[ Subtotal] }, { DESCENDANTS( [Company].[Company].[All Companies], [Company].[Company].[Company] ) } } } } ON ROWS
FROM [Daily Pipeline Snapshot]
WHERE ( [Measures].[Opportunity Value], [Sales Rep].[Sales Rep].[All Sales Rep], [Opportunity Status].[Opportunity Status].[Op Status].&[Open], [Probability].[Probability Description].[All Probability] )
CELL PROPERTIES VALUE, FORMATTED_VALUE, CELL_ORDINAL
However, now, I don't know what to try next since I really need that last dimension. Is there a possible solution? I would really like to send you my cube and let you experiment with it. Is that an option?
Linda
|||Hi,
Still a little confused by what you are both saying, as I can produce something identical to what you are suggesting in ProClarity and still slice and dice it afterwards. So that wouldn't imply it was static.
e,g, You code looks something like:
Code Snippet
WITH MEMBER [Campaign].[Campaign Region].[All Campaigns].[ Subtotal]
AS
' AGGREGATE( EXISTING { [Campaign].[Campaign Region].[All Campaigns].CHILDREN }) ',
SOLVE_ORDER = 1000
SELECT { [Measures].[Charge Out] } ON COLUMNS ,
NON EMPTY { { [Campaign].[Regular Campaign Flag].&[0],
[Campaign].[Regular Campaign Flag].&[1.] } *
{ { [Campaign].[Campaign Region].[All Campaigns].CHILDREN },
{ [Campaign].[Campaign Region].[All Campaigns].[ Subtotal] } } } ON ROWS
FROM [Self Service Prototype 3]
CELL PROPERTIES VALUE, FORMATTED_VALUE, CELL_ORDINAL
mine looks something like
Code Snippet
SELECT { [Measures].[Charge Out] } ON COLUMNS ,
NON EMPTY { { [Campaign].[Regular Campaign Flag].&[0],
[Campaign].[Regular Campaign Flag].&[1.] } *
{ { [Campaign].[Campaign Region].[All Campaigns]},
{ [Campaign].[Campaign Region].[All Campaigns].children } } } ON ROWS
FROM [Self Service Prototype 3]
CELL PROPERTIES VALUE, FORMATTED_VALUE, CELL_ORDINAL
They both produce the same results and I can slice it later on. I didn't write the code; I used ProClarity to generate it, so there is no reformatting. Which I know is an issue if you start having drop down slicers or usign subcubes. The performance hit is less as well with mine, on a cold cache the top one ran 13secs lower one 3 secs.
The only difference is I have an "All level" at the top and you have a "sub total" at the bottom.
The only down side to it as far as i can see it is if you don't include all the members of the dimension then the "All level" doesn't work.
And no matter what you code to fix the issue, as soon as you drill into something ProClarity will revert it back to using its way of MDX. So you could have a fancy quick query on the first page but as soon as you drill into a level, you still going to lose your code and perhaps incur a performance hit. Which I found out when I drilled into mine, ProClarity reverted it back to using subtotals.
You could always try caching the results (common ones) that way when your uses run their queries they hit the cache first. I believe chris webb has a blog on cache warming.
Matt
|||Hello Linda! This one
Code Snippet
{ [Next 3 Months Anticipated Close] } on columns is that a calculated member, calculated measure, named set or dimension member?You can send me the cube but the problem is that we cannot change ProClarity's MDX behaviour. Have you tried the same view/query in Excel 2007? I think you can download a trial version only to see if there is a difference between these clients.
Regards
Thomas Ivarsson
|||Thomas,
[Next 3 Months Anticipated Close] is a named set.
STRTOSET(
"[Anticipated Close Date].[Hierarchy].[Month].&["
+ Format(Now(), "yyyy") + Format(Now(), "MM") + "].Item(0):
[Anticipated Close Date].[Hierarchy].[Month].&["
+ Format(Now(), "yyyy") + Format(Now(), "MM") + "].Item(0).Lead(2)")
Where can I send the cube? I would like you to look at it and see if you get the same behavior I do.
Can Excel 2007 read cubes?
Linda
|||Linda! Excel2007 supports all SSAS2005 features except writeback. Try that option first and see if it helps.
It can reveal if it is ProClarity's MDX that is the problem.
How large is the cube? If it is large you may have to place it on an FTP-site.
If you look at my profile you can see my email.
STRTOSET is not good for performance. Is that a dynamic,running month, set?
Regards
Thomas Ivarsson
Regards
Thomas Ivarsson
|||Thomas,
We have Excel2007. I will install it and try it.
The data warehouse is 10,500 KB.
Yes, it is a dynamic running month set. What can I use instead of STRTOSET?
Thanks,
Linda
|||Linda! I have an example here: http://thomasianalytics.spaces.live.com/blog/cns!B6B6A40B93AE1393!352.entryThere are many other ways to solve this.
I think you can send the cube directly.
Regards
Thomas IvarssonProClarity Desktop Professional 6.3 - Totals Performance
I am using PDP 6.3. When I try to put a total on my grid, it basically kills ProClarity. I know there was a problem with Totals in older versions of PDP, but I thought it would have been fixed by now. Is there some workaround or hotfix?
Thanks,
Linda Fleming
Hello Linda! I have not seen performance issues with ProClarity totals but can you send some more information regarding your problem?
Can you recreate the problem on the Adventure Works sample cube or can you tell us more about the structure of your cube?
Regards
Thomas Ivarsson
|||Thomas,
(Note: I tried using a partition but did not make any difference because I think the problem is with the large number of dimension rows and not the fact table)
factTable: 200,000 rows.
I want subtotals in my view by Stage, but the query never returns.
All Companies has 1614 rows
All Opportunities has 406 rows
Here is my MDX:
SELECT NON EMPTY { [Next 3 Months Anticipated Close] } ON COLUMNS ,
NON EMPTY { { { [Stage].[Stage].&[10 - Confirmed], [Stage].[Stage].&[20 - Qualified], [Stage].[Stage].&[30 - Proposed] } * { DESCENDANTS( [Company].[Company].[All Companies], [Company].[Company].[Company] ) } * { DESCENDANTS( [Opportunity].[Opportunity].[All Opportunities], , LEAVES ) } } } ON ROWS
FROM [Daily Pipeline Snapshot]
WHERE ( [Measures].[Opportunity Value], [Sales Rep].[Sales Rep].&[TAYLOR], [Opportunity Status].[Opportunity Status].[Op Status].&[Open], [Probability].[Probability Description].[All Probability] )
CELL PROPERTIES VALUE, FORMATTED_VALUE, CELL_ORDINAL
I can send you my cube if this would expedite things.
|||Hello Linda. I think that the problem relates to that you crossjoin several dimensions, one of them at the leaf level.
I do not know how many members you have in each dimensions but if you can do subtotals on the Adventure Works cube it is probably the design of the cube that decides this.
If you remove some dimensions in the crossjoin and only start with the first two? Will it work?
HTH
Thomas Ivarsson
|||Hi,
There isn't a work around or hotfix for the problem, we had the same problem and users have been banded from including them in their queries.
Most of the time you don't need to use ProClarity's Total options, if you are selecting every child of an attribute, you can just include the all level as well and that will give you a total e.g.
All Opps
-opp1
-opp2
-opp3
SELECT { [Measures].[Measure1] } ON COLUMNS ,
{ [Dim].[Opps].[All Opps], [Dim].[Opps].&[Opp1], [Dim].[Opps].&[Opp2],[Dim].[Opps].&[Opp3] } ON ROWS
FROM [fact]
would give you an all level (total)
Measure
All 20
opp1 5
opp2 5
opp3 10
If you're not using all the members in the attribute, I wouldn't let ProClarity build your MDX statement with totals. It ends up writing the most inefficient code ever, hence why proclarity dies. Perhaps write your own MDX and paste it in the MDX viewer.
HTH
Matt
|||Good point Mark but if the subtotal feature is usable or useless depends on how many cells that you call with several dimensions on an axis and on the leaf level.
No tool can manage that!
Regards
Thomas Ivarsson
|||I wasn't really saying it was, I was just impling that ProClarity generates rubbish code. I am sure some careful planning of a report or generating your own MDX is more efficent than using ProClarity's total functions.
I was perhaps offereing a work around for the problem seeing as there wasn't a fix.
Mark AKA Matt
|||Hello Matt. I will try your solution.
The problem with your approach is that your own MDX will be changed to ProClarity MDX as soon as a user start to change your report. Your solution will probably work well with SSRS2005 or if you publish static ProClarity reports.
I have published several complaints about ProClarity's implementation of MDX on my blog.
Regards
Thomas Ivarsson
|||Matt,
Thank you for your comments. Our company has been struggling with the Totals for several years and just keep hoping it gets fixed. I notice it uses the Aggregate function. Maybe SUM would be better? I will keep working on it, but Thomas has a good point that you can't start analyzing the view. If it is a static view on the dashboard I suppose custom MDX would work.
Linda
Thomas,
I took off the 3rd dimension (Opportunity) and the subtotals worked. Here is my MDX:
WITH MEMBER [Company].[Company].[All Companies].[ Subtotal]
AS ' AGGREGATE( EXISTING
{ DESCENDANTS( [Company].[Company].[All Companies], [Company].[Company].[Company] ) }) ',
SOLVE_ORDER = 1000
SELECT NON EMPTY { [Next 3 Months Anticipated Close] } ON COLUMNS ,
NON EMPTY { { { { [Stage].[Stage].&[10 - Confirmed], [Stage].[Stage].&[20 - Qualified], [Stage].[Stage].&[30 - Proposed] } } * { { [Company].[Company].[All Companies].[ Subtotal] }, { DESCENDANTS( [Company].[Company].[All Companies], [Company].[Company].[Company] ) } } } } ON ROWS
FROM [Daily Pipeline Snapshot]
WHERE ( [Measures].[Opportunity Value], [Sales Rep].[Sales Rep].[All Sales Rep], [Opportunity Status].[Opportunity Status].[Op Status].&[Open], [Probability].[Probability Description].[All Probability] )
CELL PROPERTIES VALUE, FORMATTED_VALUE, CELL_ORDINAL
However, now, I don't know what to try next since I really need that last dimension. Is there a possible solution? I would really like to send you my cube and let you experiment with it. Is that an option?
Linda
|||Hi,
Still a little confused by what you are both saying, as I can produce something identical to what you are suggesting in ProClarity and still slice and dice it afterwards. So that wouldn't imply it was static.
e,g, You code looks something like:
Code Snippet
WITH MEMBER [Campaign].[Campaign Region].[All Campaigns].[ Subtotal]
AS
' AGGREGATE( EXISTING { [Campaign].[Campaign Region].[All Campaigns].CHILDREN }) ',
SOLVE_ORDER = 1000
SELECT { [Measures].[Charge Out] } ON COLUMNS ,
NON EMPTY { { [Campaign].[Regular Campaign Flag].&[0],
[Campaign].[Regular Campaign Flag].&[1.] } *
{ { [Campaign].[Campaign Region].[All Campaigns].CHILDREN },
{ [Campaign].[Campaign Region].[All Campaigns].[ Subtotal] } } } ON ROWS
FROM [Self Service Prototype 3]
CELL PROPERTIES VALUE, FORMATTED_VALUE, CELL_ORDINAL
mine looks something like
Code Snippet
SELECT { [Measures].[Charge Out] } ON COLUMNS ,
NON EMPTY { { [Campaign].[Regular Campaign Flag].&[0],
[Campaign].[Regular Campaign Flag].&[1.] } *
{ { [Campaign].[Campaign Region].[All Campaigns]},
{ [Campaign].[Campaign Region].[All Campaigns].children } } } ON ROWS
FROM [Self Service Prototype 3]
CELL PROPERTIES VALUE, FORMATTED_VALUE, CELL_ORDINAL
They both produce the same results and I can slice it later on. I didn't write the code; I used ProClarity to generate it, so there is no reformatting. Which I know is an issue if you start having drop down slicers or usign subcubes. The performance hit is less as well with mine, on a cold cache the top one ran 13secs lower one 3 secs.
The only difference is I have an "All level" at the top and you have a "sub total" at the bottom.
The only down side to it as far as i can see it is if you don't include all the members of the dimension then the "All level" doesn't work.
And no matter what you code to fix the issue, as soon as you drill into something ProClarity will revert it back to using its way of MDX. So you could have a fancy quick query on the first page but as soon as you drill into a level, you still going to lose your code and perhaps incur a performance hit. Which I found out when I drilled into mine, ProClarity reverted it back to using subtotals.
You could always try caching the results (common ones) that way when your uses run their queries they hit the cache first. I believe chris webb has a blog on cache warming.
Matt
|||Hello Linda! This one
Code Snippet
{ [Next 3 Months Anticipated Close] } on columns is that a calculated member, calculated measure, named set or dimension member?You can send me the cube but the problem is that we cannot change ProClarity's MDX behaviour. Have you tried the same view/query in Excel 2007? I think you can download a trial version only to see if there is a difference between these clients.
Regards
Thomas Ivarsson
|||Thomas,
[Next 3 Months Anticipated Close] is a named set.
STRTOSET(
"[Anticipated Close Date].[Hierarchy].[Month].&["
+ Format(Now(), "yyyy") + Format(Now(), "MM") + "].Item(0):
[Anticipated Close Date].[Hierarchy].[Month].&["
+ Format(Now(), "yyyy") + Format(Now(), "MM") + "].Item(0).Lead(2)")
Where can I send the cube? I would like you to look at it and see if you get the same behavior I do.
Can Excel 2007 read cubes?
Linda
|||Linda! Excel2007 supports all SSAS2005 features except writeback. Try that option first and see if it helps.
It can reveal if it is ProClarity's MDX that is the problem.
How large is the cube? If it is large you may have to place it on an FTP-site.
If you look at my profile you can see my email.
STRTOSET is not good for performance. Is that a dynamic,running month, set?
Regards
Thomas Ivarsson
Regards
Thomas Ivarsson
|||Thomas,
We have Excel2007. I will install it and try it.
The data warehouse is 10,500 KB.
Yes, it is a dynamic running month set. What can I use instead of STRTOSET?
Thanks,
Linda
|||Linda! I have an example here: http://thomasianalytics.spaces.live.com/blog/cns!B6B6A40B93AE1393!352.entryThere are many other ways to solve this.
I think you can send the cube directly.
Regards
Thomas IvarssonProClarity Desktop Professional 6.3 - Totals Performance
I am using PDP 6.3. When I try to put a total on my grid, it basically kills ProClarity. I know there was a problem with Totals in older versions of PDP, but I thought it would have been fixed by now. Is there some workaround or hotfix?
Thanks,
Linda Fleming
Hello Linda! I have not seen performance issues with ProClarity totals but can you send some more information regarding your problem?
Can you recreate the problem on the Adventure Works sample cube or can you tell us more about the structure of your cube?
Regards
Thomas Ivarsson
|||Thomas,
(Note: I tried using a partition but did not make any difference because I think the problem is with the large number of dimension rows and not the fact table)
factTable: 200,000 rows.
I want subtotals in my view by Stage, but the query never returns.
All Companies has 1614 rows
All Opportunities has 406 rows
Here is my MDX:
SELECT NON EMPTY { [Next 3 Months Anticipated Close] } ON COLUMNS ,
NON EMPTY { { { [Stage].[Stage].&[10 - Confirmed], [Stage].[Stage].&[20 - Qualified], [Stage].[Stage].&[30 - Proposed] } * { DESCENDANTS( [Company].[Company].[All Companies], [Company].[Company].[Company] ) } * { DESCENDANTS( [Opportunity].[Opportunity].[All Opportunities], , LEAVES ) } } } ON ROWS
FROM [Daily Pipeline Snapshot]
WHERE ( [Measures].[Opportunity Value], [Sales Rep].[Sales Rep].&[TAYLOR], [Opportunity Status].[Opportunity Status].[Op Status].&[Open], [Probability].[Probability Description].[All Probability] )
CELL PROPERTIES VALUE, FORMATTED_VALUE, CELL_ORDINAL
I can send you my cube if this would expedite things.
|||Hello Linda. I think that the problem relates to that you crossjoin several dimensions, one of them at the leaf level.
I do not know how many members you have in each dimensions but if you can do subtotals on the Adventure Works cube it is probably the design of the cube that decides this.
If you remove some dimensions in the crossjoin and only start with the first two? Will it work?
HTH
Thomas Ivarsson
|||Hi,
There isn't a work around or hotfix for the problem, we had the same problem and users have been banded from including them in their queries.
Most of the time you don't need to use ProClarity's Total options, if you are selecting every child of an attribute, you can just include the all level as well and that will give you a total e.g.
All Opps
-opp1
-opp2
-opp3
SELECT { [Measures].[Measure1] } ON COLUMNS ,
{ [Dim].[Opps].[All Opps], [Dim].[Opps].&[Opp1], [Dim].[Opps].&[Opp2],[Dim].[Opps].&[Opp3] } ON ROWS
FROM [fact]
would give you an all level (total)
Measure
All 20
opp1 5
opp2 5
opp3 10
If you're not using all the members in the attribute, I wouldn't let ProClarity build your MDX statement with totals. It ends up writing the most inefficient code ever, hence why proclarity dies. Perhaps write your own MDX and paste it in the MDX viewer.
HTH
Matt
|||Good point Mark but if the subtotal feature is usable or useless depends on how many cells that you call with several dimensions on an axis and on the leaf level.
No tool can manage that!
Regards
Thomas Ivarsson
|||I wasn't really saying it was, I was just impling that ProClarity generates rubbish code. I am sure some careful planning of a report or generating your own MDX is more efficent than using ProClarity's total functions.
I was perhaps offereing a work around for the problem seeing as there wasn't a fix.
Mark AKA Matt
|||Hello Matt. I will try your solution.
The problem with your approach is that your own MDX will be changed to ProClarity MDX as soon as a user start to change your report. Your solution will probably work well with SSRS2005 or if you publish static ProClarity reports.
I have published several complaints about ProClarity's implementation of MDX on my blog.
Regards
Thomas Ivarsson
|||Matt,
Thank you for your comments. Our company has been struggling with the Totals for several years and just keep hoping it gets fixed. I notice it uses the Aggregate function. Maybe SUM would be better? I will keep working on it, but Thomas has a good point that you can't start analyzing the view. If it is a static view on the dashboard I suppose custom MDX would work.
Linda
Thomas,
I took off the 3rd dimension (Opportunity) and the subtotals worked. Here is my MDX:
WITH MEMBER [Company].[Company].[All Companies].[ Subtotal]
AS ' AGGREGATE( EXISTING
{ DESCENDANTS( [Company].[Company].[All Companies], [Company].[Company].[Company] ) }) ',
SOLVE_ORDER = 1000
SELECT NON EMPTY { [Next 3 Months Anticipated Close] } ON COLUMNS ,
NON EMPTY { { { { [Stage].[Stage].&[10 - Confirmed], [Stage].[Stage].&[20 - Qualified], [Stage].[Stage].&[30 - Proposed] } } * { { [Company].[Company].[All Companies].[ Subtotal] }, { DESCENDANTS( [Company].[Company].[All Companies], [Company].[Company].[Company] ) } } } } ON ROWS
FROM [Daily Pipeline Snapshot]
WHERE ( [Measures].[Opportunity Value], [Sales Rep].[Sales Rep].[All Sales Rep], [Opportunity Status].[Opportunity Status].[Op Status].&[Open], [Probability].[Probability Description].[All Probability] )
CELL PROPERTIES VALUE, FORMATTED_VALUE, CELL_ORDINAL
However, now, I don't know what to try next since I really need that last dimension. Is there a possible solution? I would really like to send you my cube and let you experiment with it. Is that an option?
Linda
|||Hi,
Still a little confused by what you are both saying, as I can produce something identical to what you are suggesting in ProClarity and still slice and dice it afterwards. So that wouldn't imply it was static.
e,g, You code looks something like:
Code Snippet
WITH MEMBER [Campaign].[Campaign Region].[All Campaigns].[ Subtotal]
AS
' AGGREGATE( EXISTING { [Campaign].[Campaign Region].[All Campaigns].CHILDREN }) ',
SOLVE_ORDER = 1000
SELECT { [Measures].[Charge Out] } ON COLUMNS ,
NON EMPTY { { [Campaign].[Regular Campaign Flag].&[0],
[Campaign].[Regular Campaign Flag].&[1.] } *
{ { [Campaign].[Campaign Region].[All Campaigns].CHILDREN },
{ [Campaign].[Campaign Region].[All Campaigns].[ Subtotal] } } } ON ROWS
FROM [Self Service Prototype 3]
CELL PROPERTIES VALUE, FORMATTED_VALUE, CELL_ORDINAL
mine looks something like
Code Snippet
SELECT { [Measures].[Charge Out] } ON COLUMNS ,
NON EMPTY { { [Campaign].[Regular Campaign Flag].&[0],
[Campaign].[Regular Campaign Flag].&[1.] } *
{ { [Campaign].[Campaign Region].[All Campaigns]},
{ [Campaign].[Campaign Region].[All Campaigns].children } } } ON ROWS
FROM [Self Service Prototype 3]
CELL PROPERTIES VALUE, FORMATTED_VALUE, CELL_ORDINAL
They both produce the same results and I can slice it later on. I didn't write the code; I used ProClarity to generate it, so there is no reformatting. Which I know is an issue if you start having drop down slicers or usign subcubes. The performance hit is less as well with mine, on a cold cache the top one ran 13secs lower one 3 secs.
The only difference is I have an "All level" at the top and you have a "sub total" at the bottom.
The only down side to it as far as i can see it is if you don't include all the members of the dimension then the "All level" doesn't work.
And no matter what you code to fix the issue, as soon as you drill into something ProClarity will revert it back to using its way of MDX. So you could have a fancy quick query on the first page but as soon as you drill into a level, you still going to lose your code and perhaps incur a performance hit. Which I found out when I drilled into mine, ProClarity reverted it back to using subtotals.
You could always try caching the results (common ones) that way when your uses run their queries they hit the cache first. I believe chris webb has a blog on cache warming.
Matt
|||Hello Linda! This one
Code Snippet
{ [Next 3 Months Anticipated Close] } on columns is that a calculated member, calculated measure, named set or dimension member?You can send me the cube but the problem is that we cannot change ProClarity's MDX behaviour. Have you tried the same view/query in Excel 2007? I think you can download a trial version only to see if there is a difference between these clients.
Regards
Thomas Ivarsson
|||Thomas,
[Next 3 Months Anticipated Close] is a named set.
STRTOSET(
"[Anticipated Close Date].[Hierarchy].[Month].&["
+ Format(Now(), "yyyy") + Format(Now(), "MM") + "].Item(0):
[Anticipated Close Date].[Hierarchy].[Month].&["
+ Format(Now(), "yyyy") + Format(Now(), "MM") + "].Item(0).Lead(2)")
Where can I send the cube? I would like you to look at it and see if you get the same behavior I do.
Can Excel 2007 read cubes?
Linda
|||Linda! Excel2007 supports all SSAS2005 features except writeback. Try that option first and see if it helps.
It can reveal if it is ProClarity's MDX that is the problem.
How large is the cube? If it is large you may have to place it on an FTP-site.
If you look at my profile you can see my email.
STRTOSET is not good for performance. Is that a dynamic,running month, set?
Regards
Thomas Ivarsson
Regards
Thomas Ivarsson
|||Thomas,
We have Excel2007. I will install it and try it.
The data warehouse is 10,500 KB.
Yes, it is a dynamic running month set. What can I use instead of STRTOSET?
Thanks,
Linda
|||Linda! I have an example here: http://thomasianalytics.spaces.live.com/blog/cns!B6B6A40B93AE1393!352.entryThere are many other ways to solve this.
I think you can send the cube directly.
Regards
Thomas IvarssonsqlProclarity Dashboard Performance issues
Hi,
I had a problem with the performance. It generally takes time for all the application to populate the content in the window when it was called first time and for sucessive calls it will populate the page quickly. but in case of my proclarity dashboard it takes more time when it was called as many times. can anyone help me to resolve this problem.
Thanks,
madhan
Are you saying that the second time you displayed a page from RS, it took as long as the first time? If so check the log file and see if the appdomain was recycled. There is "shutdownReason" in the log file that may be of interest. Make sure you are not touching any file under the RS directory each time you load your dashboard.
Wednesday, March 21, 2012
Processor performance issues
I was hoping someone out there can give me some direction on some performance issues I've been having with SQL Server 2005. I have two SQL Servers instances configured almost identically (or so it seems) on two different machines.
I have a certain data process initiated from a database aplication that is giving me two different results depending on which sever processes it. One of my servers is taking considerable more processor time and effort than the other running at 100% utilization for a long period of time. I have double checked the settings on both SQL Server instances and there are very few differences. The Maximum worker threads on the poor one is set to 1024 while the better server is set to automatic (0). That is the only differnce I have found in the settings of these two servers and it's my understanding that I should not see a huge performance difference due to this setting.
I'm a bit at my wits end here and really need some more ideas at what other factors that I am not taking into account could effect Processor utilization.
Hi Joe,
you will need to run the explain on each machine and review the plan created by the optimiser for any piece of sql you think is running too slowly. If you have the same piece of sql that performs differently on the two machines even better.
It is not unusual for small differences in number of rows or an index that should be there that is not to significantly influence performance.
Alas, I wish there were more documentation around on how the optimiser chooses access paths but there seems to be not a lot of it around.......
(PS. In 2005 you generate plans from sql server studio in case you are not aware...)
Best Regards
Peter
|||Try running these queries on both systems, to give a better idea of what is going on:
-- Isolate top waits
WITH Waits AS
(
SELECT
wait_type,
wait_time_ms / 1000. AS wait_time_s,
100. * wait_time_ms /SUM(wait_time_ms)OVER()AS pct,
ROW_NUMBER()OVER(ORDERBY wait_time_ms DESC)AS rn
FROMsys.dm_os_wait_stats
WHERE wait_type NOTLIKE'%SLEEP%'
-- filter out additional irrelevant waits
)
SELECT
W1.wait_type,
CAST(W1.wait_time_s ASDECIMAL(12, 2))AS wait_time_s,
CAST(W1.pct ASDECIMAL(12, 2))AS pct,
CAST(SUM(W2.pct)ASDECIMAL(12, 2))AS running_pct
FROM Waits AS W1
INNERJOIN Waits AS W2
ON W2.rn <= W1.rn
GROUPBY W1.rn, W1.wait_type, W1.wait_time_s, W1.pct
HAVINGSUM(W2.pct)- W1.pct < 90 -- percentage threshold
ORDERBY W1.rn;
-- Total waits are wait_time_ms (high signal waits indicates CPU pressure)
SELECT'%signal (cpu) waits'=CAST(100.0 *SUM(signal_wait_time_ms)/SUM(wait_time_ms)ASNUMERIC(20,2)),
'%resource waits'=CAST(100.0 *SUM(wait_time_ms - signal_wait_time_ms)/SUM(wait_time_ms)ASNUMERIC(20,2))
FROMsys.dm_os_wait_stats;
-- Check SQL Server Schedulers to see if they are waiting on CPU
SELECT scheduler_id, current_tasks_count, runnable_tasks_count
FROMsys.dm_os_schedulers
WHERE scheduler_id < 255
Processor based license will improve performance?
performance compare to CAL based licensing?
Thanks.
Ram
Ram wrote:
> If we use processor based license for SQL Server will that improve
> performance compare to CAL based licensing?
> Thanks.
> Ram
>
no!
|||No. It's just a different licence agreement. The software is the same in each
case.
David Portas
SQL Server MVP
|||Performance and License are two different and unrelated things. However, as
a side effect, if by acquiring more licenses (Seat based or Processor based)
you are adding
more users, then, ofcourse, the new users will impact performance.
Gopi
"Ram" <Ramakrishna.pothuganti@.vizual.co.in> wrote in message
news:ejOjuswSFHA.2304@.tk2msftngp13.phx.gbl...
> If we use processor based license for SQL Server will that improve
> performance compare to CAL based licensing?
> Thanks.
> Ram
>
Processor based license will improve performance?
performance compare to CAL based licensing?
Thanks.
RamRam wrote:
> If we use processor based license for SQL Server will that improve
> performance compare to CAL based licensing?
> Thanks.
> Ram
>
no!|||No. It's just a different licence agreement. The software is the same in eac
h
case.
David Portas
SQL Server MVP
--|||Performance and License are two different and unrelated things. However, as
a side effect, if by acquiring more licenses (Seat based or Processor based)
you are adding
more users, then, ofcourse, the new users will impact performance.
Gopi
"Ram" <Ramakrishna.pothuganti@.vizual.co.in> wrote in message
news:ejOjuswSFHA.2304@.tk2msftngp13.phx.gbl...
> If we use processor based license for SQL Server will that improve
> performance compare to CAL based licensing?
> Thanks.
> Ram
>
Processor based license will improve performance?
performance compare to CAL based licensing?
Thanks.
RamRam wrote:
> If we use processor based license for SQL Server will that improve
> performance compare to CAL based licensing?
> Thanks.
> Ram
>
no!|||No. It's just a different licence agreement. The software is the same in each
case.
--
David Portas
SQL Server MVP
--|||Performance and License are two different and unrelated things. However, as
a side effect, if by acquiring more licenses (Seat based or Processor based)
you are adding
more users, then, ofcourse, the new users will impact performance.
Gopi
"Ram" <Ramakrishna.pothuganti@.vizual.co.in> wrote in message
news:ejOjuswSFHA.2304@.tk2msftngp13.phx.gbl...
> If we use processor based license for SQL Server will that improve
> performance compare to CAL based licensing?
> Thanks.
> Ram
>sql
Tuesday, March 20, 2012
processing speed, optimizations for AMD Opteron
System: Dual Xeon Irwingdale 3.4 GHz, Chipset E7525, 4GB Ram
OS: Windows XP Pro SP2
Fact Rows: 20,000,000
Aggregations: 1300
Processing Time: 3 Hrs
System: Dual AMD Opteron 246 (2.0 GHz), AMD Chipset 8000 (MB Tyan S2885). 4 GB RAM
OS: Windows 2003 Enterprise (SP1)
Fact Rows: 20,000,000 (same data set as 1st case)
Aggregations: 1300
Processing Time: 6-7 Hrs
Both test environments have the:
Same RAM speed
Same model HDDs
Is this difference due to any lack of AMD-specific optimizations in SSAS binaries? or some other reason?
Also is there any way to reduce the thread priority on SSAS binary during optimization? It seems to almost completely hose the machine (windows 2003 ent.) during processing. When attempted to change processing priority through task manager I got access denier error (logged in as admin)Did you test under the same OS and 100% equial another options?
Such difference as you have acounted seems to be too screwy.|||
Vladimir Chtepa wrote:
Did you test under the same OS and 100% equial another options? Such difference as you have acounted seems to be too screwy.
The operating systems are different - Windows XP SP2 vs. Windows 2003 SP1.
SSAS options are all same.
Also when its processing on Windows 2003 SP1/AMD Opteron test environment it is much harder to use any other applications (open windows, task manager, etc) than on the Windows XP. The AMD/Windows2003 gets very hosed/hung up when processing at 100% CPU.
On other hand the IntelXeon/Win XP case it still responsive even when processing faster and at 100% CPU for hours.