cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Query Optimization using Aggregates

Former Member
0 Likes
389

Hi Folks

We have a performance tunning activity in which we need to optimize the query running time using aaggregates. The aggregates are already present in the system. I need to find to find out what more aggregates can i create or delete the existing non-usable aggregate.


I have taken the list of the long running query and there multiprovider from the t-code st03.


Can you please guide me how to procede forward in this regard.


Regards

Nitin

View Entire Topic
KodandaPani_KV
Active Contributor
0 Likes

Hi,

you need to find the trace in ST05.

first activate the trace  -> then execute the query at RSRT -> after query exection compeleted deactive the trace -> now read the select statement.

based on the select statement you will decide the which object required for the aggegates ot not.

plase read the document for more detail.

Thanks,

Phani.

Former Member
0 Likes

Hi pani,

thanks for reply, apart from running the SQL trace, is there any other way to identify the object to be used for aggregate.

Nitin....

chanda
Contributor
0 Likes

Hi Nitin,

Firstly is check if your query is hitting the aggregates or not based on your input .

Even though aggregates exist, it is not necessary that they being hit.

If you do not know how to check it below is the procedure.

RSRT--> provide query name --> click on Execute & debug--> Select Display   Aggregate Found ( Under AGGS). then execute.

You will see which aggregate on which cube have been hit.

If for any cube it does not hit, you can take screen shot and create an aggregate based on the characteristics shown .

Hope it helps,

Regards,

Sudhir

Former Member
0 Likes

Hi nitin,

First make sure that the Aggregates are being used during Query Execution...Aggegrates may be present but they may not be used...there wud nt be any hit to it.

This can be checked using RSRT + Execute +Debug with Display Aggregates.

rgds

SVU

Former Member
0 Likes

Hi pani,

I ran the SQL trace, but output came with SQL program and /BIC/E* table. Is it possible that the available aggregates are not being hit at all.

Regards

Nitin

Former Member
0 Likes

Hi Chandra,

Thanks for ur reply, as i went to execute+debug and selected the display aggregate and a list appear ..

I can see a list of objects that are present under maintain aggregate of infocube and some other object is also displayed.

do i need to build aggregate on these "other objects".

Also Can you please elaborate on your statment:

If for any cube it does not hit, you can take screen shot and create an aggregate based on the characteristics shown ."