<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Query Optimization using Aggregates in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/query-optimization-using-aggregates/qaa-p/10862570#M3977997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pani, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jan 2015 11:46:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-01-15T11:46:05Z</dc:date>
    <item>
      <title>Query Optimization using Aggregates</title>
      <link>https://community.sap.com/t5/technology-q-a/query-optimization-using-aggregates/qaq-p/10862564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have taken the list of the long running query and there multiprovider from the t-code st03. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Can you please guide me how to procede forward in this regard.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Nitin&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 14:14:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-optimization-using-aggregates/qaq-p/10862564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-07T14:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Query Optimization using Aggregates</title>
      <link>https://community.sap.com/t5/technology-q-a/query-optimization-using-aggregates/qaa-p/10862565#M3977992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to find the trace in ST05.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first activate the trace&amp;nbsp; -&amp;gt; then execute the query at RSRT -&amp;gt; after query exection compeleted deactive the trace -&amp;gt; now read the select statement.&lt;/P&gt;&lt;P&gt;based on the select statement you will decide the which object required for the aggegates ot not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plase read the document for more detail.&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="51233" __jive_macro_name="document" class="jive_macro_document jive_macro" data-orig-content="How to find SQL Traces" href="https://community.sap.com/" modifiedtitle="true" title="How to find SQL Traces"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Phani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 15:24:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-optimization-using-aggregates/qaa-p/10862565#M3977992</guid>
      <dc:creator>KodandaPani_KV</dc:creator>
      <dc:date>2015-01-07T15:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Query Optimization using Aggregates</title>
      <link>https://community.sap.com/t5/technology-q-a/query-optimization-using-aggregates/qaa-p/10862566#M3977993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for reply, apart from running the SQL trace, is there any other way to identify the object to be used for aggregate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nitin....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 16:16:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-optimization-using-aggregates/qaa-p/10862566#M3977993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-07T16:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Query Optimization using Aggregates</title>
      <link>https://community.sap.com/t5/technology-q-a/query-optimization-using-aggregates/qaa-p/10862567#M3977994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nitin,&lt;/P&gt;&lt;P&gt;Firstly is check if your query is hitting the aggregates or not based on your input .&lt;/P&gt;&lt;P&gt;Even though aggregates exist, it is not necessary that they being hit.&lt;/P&gt;&lt;P&gt;If you do not know how to check it below is the procedure.&lt;/P&gt;&lt;P&gt;RSRT--&amp;gt; provide query name --&amp;gt; click on Execute &amp;amp; debug--&amp;gt; Select Display&amp;nbsp;&amp;nbsp; Aggregate Found ( Under AGGS). then execute.&lt;/P&gt;&lt;P&gt;You will see which aggregate on which cube have been hit.&lt;/P&gt;&lt;P&gt;If for any cube it does not hit, you can take screen shot and create an aggregate based on the characteristics shown .&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sudhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 02:51:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-optimization-using-aggregates/qaa-p/10862567#M3977994</guid>
      <dc:creator>chanda</dc:creator>
      <dc:date>2015-01-08T02:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Query Optimization using Aggregates</title>
      <link>https://community.sap.com/t5/technology-q-a/query-optimization-using-aggregates/qaa-p/10862568#M3977995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi nitin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;This can be checked using RSRT + Execute +Debug with Display Aggregates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SVU&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 05:39:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-optimization-using-aggregates/qaa-p/10862568#M3977995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-08T05:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Query Optimization using Aggregates</title>
      <link>https://community.sap.com/t5/technology-q-a/query-optimization-using-aggregates/qaa-p/10862569#M3977996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to check the aggregates being used or not in RSRT + Execute +Debug&lt;/P&gt;&lt;P&gt;and check the aggregates panle - selec the cube -&amp;gt; right clcik -&amp;gt; select the maintain aggregates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now you will find the column as USED - then it says last used aggregates for the cube.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Phani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 07:07:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-optimization-using-aggregates/qaa-p/10862569#M3977996</guid>
      <dc:creator>KodandaPani_KV</dc:creator>
      <dc:date>2015-01-08T07:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Query Optimization using Aggregates</title>
      <link>https://community.sap.com/t5/technology-q-a/query-optimization-using-aggregates/qaa-p/10862570#M3977997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pani, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 11:46:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-optimization-using-aggregates/qaa-p/10862570#M3977997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-15T11:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Query Optimization using Aggregates</title>
      <link>https://community.sap.com/t5/technology-q-a/query-optimization-using-aggregates/qaa-p/10862571#M3977998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandra, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur reply, as i went to execute+debug and selected the display aggregate and a list appear .. &lt;/P&gt;&lt;P&gt;I can see a list of objects that are present under maintain aggregate of infocube and some other object is also displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do i need to build aggregate on these "other objects". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also Can you please elaborate on your statment:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;If for any cube it does not hit, you can take screen shot and create an aggregate based on the characteristics shown ."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 12:23:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-optimization-using-aggregates/qaa-p/10862571#M3977998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-15T12:23:57Z</dc:date>
    </item>
  </channel>
</rss>

