<?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>topic Re: Performance Join or multiple Selects in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-join-or-multiple-selects/m-p/6534617#M1427023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Both, i'm going to make the changes to my code, and try to post the results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jan 2010 16:50:12 GMT</pubDate>
    <dc:creator>sergio_cifuentes</dc:creator>
    <dc:date>2010-01-15T16:50:12Z</dc:date>
    <item>
      <title>Performance Join or multiple Selects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-join-or-multiple-selects/m-p/6534614#M1427020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i want to know in terms of performance, what's better, when you have to make a select for two or more tables what's the best way to do it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Using Join Condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select *
  from table1
inner join table2
on table1~keyfield = table2~keyfield.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Using Multiple Select statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select *
 into itab
from table1
where ....

loop at itab
  select *
    from table2
  where keyfield = itab.keyfield.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 16:21:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-join-or-multiple-selects/m-p/6534614#M1427020</guid>
      <dc:creator>sergio_cifuentes</dc:creator>
      <dc:date>2010-01-15T16:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Join or multiple Selects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-join-or-multiple-selects/m-p/6534615#M1427021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there is a seperate forum for Performance and tuning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this &lt;SPAN __jive_macro_name="thread" id="1174072"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Never use a select inside loop, check yourself through ST05.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 16:28:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-join-or-multiple-selects/m-p/6534615#M1427021</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-01-15T16:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Join or multiple Selects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-join-or-multiple-selects/m-p/6534616#M1427022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not try it yourself and post your results?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason being that if anyone bothers to respond, you will get two answers; some will say "1" others will say "2". Then where will you be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Keshav.T - but if he asks it in that forum, it would be locked &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Jan 15, 2010 11:31 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 16:29:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-join-or-multiple-selects/m-p/6534616#M1427022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-15T16:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Join or multiple Selects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-join-or-multiple-selects/m-p/6534617#M1427023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Both, i'm going to make the changes to my code, and try to post the results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 16:50:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-join-or-multiple-selects/m-p/6534617#M1427023</guid>
      <dc:creator>sergio_cifuentes</dc:creator>
      <dc:date>2010-01-15T16:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Join or multiple Selects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-join-or-multiple-selects/m-p/6534618#M1427024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try and get results in Number of micro seconds it took to execute your code if you follow this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tr. SM30 &amp;gt; tip &amp;amp; trick button on the top &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the right of the new screen you can see two areas, where you can past/import each of your codes (with and without joins) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;once you have pasted/imported your code hit the measure runtime button which will give you the exact result of your code in msec.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 16:55:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-join-or-multiple-selects/m-p/6534618#M1427024</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2010-01-15T16:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Join or multiple Selects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-join-or-multiple-selects/m-p/6534619#M1427025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; You can try and get results in Number of micro seconds it took to execute your code if you follow this :&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Tr. SM30 &amp;gt; tip &amp;amp; trick button on the top &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; in the right of the new screen you can see two areas, where you can past/import each of your codes (with and without joins) &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; once you have pasted/imported your code hit the measure runtime button which will give you the exact result of your code in msec.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The trouble with this is that buffering will probably be an issue. SAP recommends running this multiple times and taking the lowest from each.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 17:03:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-join-or-multiple-selects/m-p/6534619#M1427025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-15T17:03:00Z</dc:date>
    </item>
  </channel>
</rss>

