<?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 performance wise in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-wise/m-p/1936969#M387407</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Performance wise which is best to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Inner join statement (if we joining two tables) or For all entries ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prasanna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 Feb 2007 10:43:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-17T10:43:08Z</dc:date>
    <item>
      <title>performance wise</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-wise/m-p/1936969#M387407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Performance wise which is best to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Inner join statement (if we joining two tables) or For all entries ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prasanna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Feb 2007 10:43:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-wise/m-p/1936969#M387407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-17T10:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: performance wise</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-wise/m-p/1936970#M387408</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;It depends upon the tables and thier comparing fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for header and item tables JOIN is good &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for some cases if the records are repeatative then delete adjacent duplicate entries and use for all entries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this all should be done by trial and error method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Feb 2007 10:51:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-wise/m-p/1936970#M387408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-17T10:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: performance wise</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-wise/m-p/1936971#M387409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;depends like how many tables are u fetching from .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the tables are more than 3 and they have a finite relationship with keys then better go for inner join , Ex tables MARA MARC MARD MAKT &lt;/P&gt;&lt;P&gt;if these are the tables tehn join can be used to get the data.&lt;/P&gt;&lt;P&gt;cause &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mara-matnr  = marc-matnr = mard-matnr = makt-matnr&lt;/P&gt;&lt;P&gt;                     marc-werks = mard-werks &lt;/P&gt;&lt;P&gt;                                       = mard-lgort&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the table hierarchy  is not consistent then use for all entries .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like VBAK Kna1 adrc in these cases there is no definite key relation ship so opt for for all entries .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For performance :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Majoritily joins will be used when the programmer is comfortable with teh keys of the table.&lt;/P&gt;&lt;P&gt;case 1. &lt;/P&gt;&lt;P&gt;cause if there is no such thing then program execution will take longer time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case2.&lt;/P&gt;&lt;P&gt;for all entries is quick compared to inner joins .&lt;/P&gt;&lt;P&gt;But need to handle with more selects .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Feb 2007 10:56:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-wise/m-p/1936971#M387409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-17T10:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: performance wise</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-wise/m-p/1936972#M387410</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;This question has been asked many times before. &lt;/P&gt;&lt;P&gt;Do a search in SDN for "inner join for all entries" and you'll see what I mean!&lt;/P&gt;&lt;P&gt;Really it depends on the number and types of the database tables in question and how many entries you have in your internal table. &lt;/P&gt;&lt;P&gt;If you have 2 tables related by primary key fields (e.g. VBAK &amp;amp; VBAP) then do a join. Quite often, such related tables have database views already created by SAP so have a look at these as a better option.&lt;/P&gt;&lt;P&gt;'for all entries in' tends to be very inefficient with large numbers of records in your internal table because SAP will split the entries (so the SQL statement doesn't get too big) and do multiple selects from the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Feb 2007 11:11:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-wise/m-p/1936972#M387410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-17T11:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: performance wise</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-wise/m-p/1936973#M387411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its alwys better to go for For All Entries.. Rather than Inner Joins.. U can find the diff which our friends has replied for the same..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Parvez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Feb 2007 11:32:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-wise/m-p/1936973#M387411</guid>
      <dc:creator>former_member2382</dc:creator>
      <dc:date>2007-02-17T11:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: performance wise</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-wise/m-p/1936974#M387412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. U can join 2 tables by using joins but the performance goes down. This can be overcomed by for all entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options : s_vbeln for likp-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbeln erdat lfart&lt;/P&gt;&lt;P&gt;from likp&lt;/P&gt;&lt;P&gt;into table it_likp&lt;/P&gt;&lt;P&gt;where vbeln in s_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;based on s_vbeln the records will be stored in it_likp. eg, say 24 records selected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not it_likp[] is initial.&lt;/P&gt;&lt;P&gt;select vbeln posnr matnr&lt;/P&gt;&lt;P&gt;from lips&lt;/P&gt;&lt;P&gt;into table it_lips&lt;/P&gt;&lt;P&gt;for all entries in it_likp&lt;/P&gt;&lt;P&gt;where vbeln eq it_likp-vbeln.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now , since i am using,&lt;/P&gt;&lt;P&gt;for all entries in it_likp&lt;/P&gt;&lt;P&gt;so the vbeln value of these 24 records (which i have selected in it_likp) will be checked in lips and those records will be stored in it_lips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drawback is if the records are not there in it_likp then all the records from lips will be fetched into it_lips.&lt;/P&gt;&lt;P&gt;To overcome this draw back we have to compulsory check&lt;/P&gt;&lt;P&gt;if not it_likp[] is initial.&lt;/P&gt;&lt;P&gt;this means if the internal table it_likp is not initial ie, it is containing some records&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Feb 2007 11:36:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-wise/m-p/1936974#M387412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-17T11:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: performance wise</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-wise/m-p/1936975#M387413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi krishna sri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is always a good idea to switch on performance trace in second section, test run select statement, switch off and analyse. Use the toolbox icon to explain select statement. This will show you how joins are achieved, what indexes are used and a cost estimate on the database access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this to decide a couple of time and you will get the experience you are asking for here. Win merits and show solidarity with others and search online help and this forum before posting. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Feb 2007 18:23:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-wise/m-p/1936975#M387413</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-02-17T18:23:44Z</dc:date>
    </item>
  </channel>
</rss>

