<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/1743248#M322735</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;&lt;/P&gt;&lt;P&gt;I think it depends. There is no hard and fast rule as to which one is better. It depends upon the volume of data that is being selected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inner join works efficiently in few cases like join of VBAK, VBAP and VBEP i.e. tables which have sales orders. Here if you are trying to use for all entries in each case, it is definately time consuming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The inner joins uses different strategy to get the data out where as the For all entries have different strategy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While tuning, you need to check for both and then go for whichever is best.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shahu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Dec 2006 06:57:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-08T06:57:18Z</dc:date>
    <item>
      <title>performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/1743242#M322729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in performance view which is the better 'inner join' or 'for all entries'?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 05:48:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/1743242#M322729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T05:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/1743243#M322730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; To avoid nested select statements we use SELECT FOR ALL ENTRIES statement. &lt;/P&gt;&lt;P&gt;        If there r more than 10000 records SELECT FOR ALL ENTRIES is used. &lt;/P&gt;&lt;P&gt;        Performance wise SELECT FOR ALL ENTRIES is better to use. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;note:  please reward all useful answers.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 05:51:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/1743243#M322730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T05:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/1743244#M322731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.i think for all entries is more efficient than joins.&lt;/P&gt;&lt;P&gt;2. but with for all entries complexity of coding when compared to joins but  when ur  using more than 3  table in join avoid to use join&lt;/P&gt;&lt;P&gt;3. for performance point of view for all entries uses more internal tables and joins uses more database tables. so to reduce database load , its better to go for for all entries &lt;/P&gt;&lt;P&gt;4.to fetch data  from database table take more time tahn taking data from internal tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 05:54:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/1743244#M322731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T05:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/1743245#M322732</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;Using several nested INNER JOIN statements can be inefficient and cause time out if the tables become too big in the future.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joins here (in ABAP) are not those Native SQL Joins.  If you are talking about the Core RDBMS, which mean Oracle or SQL Server, then Undoubtedly Joins are the best.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ABAP, these joins are first split by the ABAP processor and then sent to the database, with the increase in DATA in production system, these joins tend to give way if your database keeps growing larger and larger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should rather used "FOR ALL ENTRIES IN" (Tabular conditions), which is a much effecient way as far as performance is concerned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 05:57:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/1743245#M322732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T05:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/1743246#M322733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If we see performance wise for all entries is much better than using joins statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 06:48:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/1743246#M322733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T06:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/1743247#M322734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the performance point of view Fo all Entreies will take lesser time than&lt;/P&gt;&lt;P&gt;Inner Join&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 06:50:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/1743247#M322734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T06:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/1743248#M322735</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;&lt;/P&gt;&lt;P&gt;I think it depends. There is no hard and fast rule as to which one is better. It depends upon the volume of data that is being selected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inner join works efficiently in few cases like join of VBAK, VBAP and VBEP i.e. tables which have sales orders. Here if you are trying to use for all entries in each case, it is definately time consuming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The inner joins uses different strategy to get the data out where as the For all entries have different strategy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While tuning, you need to check for both and then go for whichever is best.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shahu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 06:57:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/1743248#M322735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T06:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/1743249#M322736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil, &lt;/P&gt;&lt;P&gt;  They both are for two diffrenet purposes tough they may give the same result.&lt;/P&gt;&lt;P&gt;In case of for all entries : You need to retreive the data first and then use this retreived data to get another set of data .&lt;/P&gt;&lt;P&gt;But for all entries has the following drawbacks&lt;/P&gt;&lt;P&gt;1. It dumps if the number of entries in the internal table are very large&lt;/P&gt;&lt;P&gt;2. It does not allow duplicate entries , so it is always suggested to retrieve all the key fields while using for all entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of inner join , in one go you perform the steps which you do in for all entries .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The performance depends on the ampunt of data you retrieve , the fields you give(do you supply key fields) and on how many tables you perform join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 07:05:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/1743249#M322736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T07:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/1743250#M322737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can read data from more than one database table in a single SELECT statement by using inner or left outer joins in the FROM clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is also possible to avoid nested SELECT loops by placing the selection from the outer loop in an internal table and then running the inner selection once only using the FOR ALL ENTRIES addition. This technique stems from the time before joins were allowed in the FROM clause. On the other hand, it does prevent redundant data from being transferred from the database.&lt;/P&gt;&lt;P&gt;=================================================&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/several-nested-inner-join-statements-can-be-inefficient.htm" target="test_blank"&gt;http://www.sap-img.com/abap/several-nested-inner-join-statements-can-be-inefficient.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 07:51:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/1743250#M322737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T07:51:26Z</dc:date>
    </item>
  </channel>
</rss>

