<?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: Plan Analyze ASA-9 in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/plan-analyze-asa-9/qaa-p/13845075#M4875918</link>
    <description>&lt;P&gt;Please post the plan files. To save a plan,  use dbisql Plan Viewer, choose 'node and detailed statistics' ( the query will be executed),  generate the  plan, use Save as to save the plan in a file. The plan  file contains many types of statistics,  beyond your pictures above, which can be used to analyze the query execution as well as the query optimization process. &lt;/P&gt;</description>
    <pubDate>Tue, 05 Feb 2013 09:50:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-02-05T09:50:13Z</dc:date>
    <item>
      <title>Plan Analyze ASA-9</title>
      <link>https://community.sap.com/t5/technology-q-a/plan-analyze-asa-9/qaq-p/13845073</link>
      <description>&lt;P&gt;I changed the query. Both should return the same amount of tuples. Where there were JOIN, changed to KEY JOIN (based on the concept of using the KEY JOIN). Some fields that the type CHAR that receive only numeric values ​​have changed for the type INTEGER. (I turned off the primary and foreign keys and created again using the new fields of INTEGER). The indices were also deleted and re-created using the field of type INTEGER. The WHERE clause has not changed. Remains the same filter.&lt;/P&gt;
&lt;P&gt;I changed the query code and grabbed the implementation plans and would like to make a comparison between them.
How to correctly analyze the execution plan in ASA-9? &lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Plan Analyze ASA9"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/189744i50220F6172AE71BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Plan Analyze ASA9" alt="Plan Analyze ASA9" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;before:
after
 &lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Plan Analyze ASA9"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/189745i9683B45B503B96D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Plan Analyze ASA9" alt="Plan Analyze ASA9" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2013 08:53:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/plan-analyze-asa-9/qaq-p/13845073</guid>
      <dc:creator>former_SQLA_member1694872</dc:creator>
      <dc:date>2013-02-04T08:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Plan Analyze ASA-9</title>
      <link>https://community.sap.com/t5/technology-q-a/plan-analyze-asa-9/qaa-p/13845074#M4875917</link>
      <description>&lt;P&gt;Trivially, we can tell you where the differences are between the graphical representations:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;TBVENPEDIDO is taking up 76.76% of your total execution time whereas it took 31.47% before. It is likely scanning more data. To find out why this is the case, you need to look at the node details to see where the differences are.&lt;/LI&gt;
&lt;LI&gt;TBUNICLIFOR is taking up more of your execution time to match against TBVENPEDIDO, so it may be scanning more data out also. Again, the node details would tell you more.&lt;/LI&gt;
&lt;LI&gt;There is a conversion of join strategies between these tables (JNL -&amp;gt; JH), possibly due to a change in runtime conditions or join cardinality estimations.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;But without the actual plan details ("with statistics") on each node, it's difficult to comment on why this is the case, simply by looking at the graphical representation. You need to capture the SQL statements and plan with statistics. Can these full plan files (*.xml / *.saplan) be provided?&lt;/P&gt;
&lt;P&gt;Do both of these queries really return the same set of results? Or are they looking at different data sets? Did you change the actual SQL statement, or just the predicates for your WHERE clause?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2013 09:49:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/plan-analyze-asa-9/qaa-p/13845074#M4875917</guid>
      <dc:creator>jeff_albion</dc:creator>
      <dc:date>2013-02-04T09:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Plan Analyze ASA-9</title>
      <link>https://community.sap.com/t5/technology-q-a/plan-analyze-asa-9/qaa-p/13845076#M4875919</link>
      <description>&lt;P&gt;Well, it might be noted that it's just "taking up more &lt;STRONG&gt;relative&lt;/STRONG&gt;  execution time" - without knowing the timing details, we can't even tell which query is faster (which you have already made very clear, there's no doubt about that!)...&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2013 10:56:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/plan-analyze-asa-9/qaa-p/13845076#M4875919</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2013-02-04T10:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Plan Analyze ASA-9</title>
      <link>https://community.sap.com/t5/technology-q-a/plan-analyze-asa-9/qaa-p/13845077#M4875920</link>
      <description>&lt;P&gt;I changed the query.
Both should return the same amount of tuples.
Where there were JOIN, changed to KEY JOIN (based on the concept of using the JOIN KEY).
Some fields that the type CHAR that receive only numeric values ​​have changed for the type INTEGER. (I turned off the primary and foreign keys and created again using the new fields of INTEGER).
The indices were also deleted and re-created using the field of type INTEGER.
The WHERE clause has not changed. Remains the same filter.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2013 11:49:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/plan-analyze-asa-9/qaa-p/13845077#M4875920</guid>
      <dc:creator>former_SQLA_member1694872</dc:creator>
      <dc:date>2013-02-04T11:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Plan Analyze ASA-9</title>
      <link>https://community.sap.com/t5/technology-q-a/plan-analyze-asa-9/qaa-p/13845075#M4875918</link>
      <description>&lt;P&gt;Please post the plan files. To save a plan,  use dbisql Plan Viewer, choose 'node and detailed statistics' ( the query will be executed),  generate the  plan, use Save as to save the plan in a file. The plan  file contains many types of statistics,  beyond your pictures above, which can be used to analyze the query execution as well as the query optimization process. &lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2013 09:50:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/plan-analyze-asa-9/qaa-p/13845075#M4875918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-05T09:50:13Z</dc:date>
    </item>
  </channel>
</rss>

