<?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: interview Question on perfomance tunning in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/interview-question-on-perfomance-tunning/m-p/3676848#M885452</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;Factors affecting the performance of FOR ALL ENTRIES:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) If the table on which the For All Entries IN clause is based is empty, then all rows are selected into the destination table. which may take lot of time move all the rows into the destination table. to avoid this check in before whether the first internal table is empty or not.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;2) If the table on which the For All Entries IN clause is based is very large, then also the performance of the FOR ALL ENTRIES may get affected. Hence care should be taken to keep internal table size at a moderate level. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this may help you to solve your problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Apr 2008 10:31:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-21T10:31:45Z</dc:date>
    <item>
      <title>interview Question on perfomance tunning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interview-question-on-perfomance-tunning/m-p/3676845#M885449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi abaper's&lt;/P&gt;&lt;P&gt;                  if for all entries is taking more time to retriew data from DDIC , then how can we improve performance which type of select statement we have to use.&lt;/P&gt;&lt;P&gt;and i need some notes on Performace tunning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;pardeep kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 08:29:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interview-question-on-perfomance-tunning/m-p/3676845#M885449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T08:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: interview Question on perfomance tunning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interview-question-on-perfomance-tunning/m-p/3676846#M885450</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;If it is taking more time, then check &lt;/P&gt;&lt;P&gt;1. if the internal table used in the for all entries is not empty.&lt;/P&gt;&lt;P&gt;2. if the internal table used in for all entries does not have any duplicate entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inspite of the above checks, the for all entries is taking more time...then &lt;/P&gt;&lt;P&gt;try to use Join and make sure you use primary keys as joining fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhumitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 08:34:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interview-question-on-perfomance-tunning/m-p/3676846#M885450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T08:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: interview Question on perfomance tunning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interview-question-on-perfomance-tunning/m-p/3676847#M885451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please have a look at below link for performane tuning tips:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5d0db4c9-0e01-0010-b68f-9b1408d5f234" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5d0db4c9-0e01-0010-b68f-9b1408d5f234&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vibha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark all the useful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 08:51:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interview-question-on-perfomance-tunning/m-p/3676847#M885451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T08:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: interview Question on perfomance tunning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interview-question-on-perfomance-tunning/m-p/3676848#M885452</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;Factors affecting the performance of FOR ALL ENTRIES:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) If the table on which the For All Entries IN clause is based is empty, then all rows are selected into the destination table. which may take lot of time move all the rows into the destination table. to avoid this check in before whether the first internal table is empty or not.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;2) If the table on which the For All Entries IN clause is based is very large, then also the performance of the FOR ALL ENTRIES may get affected. Hence care should be taken to keep internal table size at a moderate level. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this may help you to solve your problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 10:31:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interview-question-on-perfomance-tunning/m-p/3676848#M885452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T10:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: interview Question on perfomance tunning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interview-question-on-perfomance-tunning/m-p/3676849#M885453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;incorrect usage of FOR ALL ENTRIES:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the driver table is empty, and you don't want to get the whole db-table back. Please take care that the FOR ALL ENTRIES is only executed if the driver table contains records.&lt;/P&gt;&lt;P&gt;(side remark: don't check with describe table lines, you don't need the number of lines, only whether it is not initial)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the driver table can contain a lot of duplicates, then sort it and delete duplicates before execution. Duplicates means with respect to the fields which are used in the select. If the driver table is needed later and has actually a longer unique key, then it is necessary to move into a temporary table and remove the duplicates there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;performant usage of the FOR ALL ENTRIES:&lt;/P&gt;&lt;P&gt;the select must be able to use an index, otherwise performance will be bad, if the table is large.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Optimization of a correct performant FOR ALL ENTRIES statement:&lt;/P&gt;&lt;P&gt;Check whether the same can be achivied by a join, the join can be more performant than the FOR ALl ENTRIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 15:07:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interview-question-on-perfomance-tunning/m-p/3676849#M885453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T15:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: interview Question on perfomance tunning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interview-question-on-perfomance-tunning/m-p/3676850#M885454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;while using FOR ALL ENTRIES you have to make sure the internal table which you are using must not be blank if it is than it will fetch all the entries from the selected table which cause to dump or performance of the program will descreased.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;secondly check for duplicate entries and remove them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And make sure while selecting you can provide as many as key fields or indexed fields, this will improve the performance as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 07:52:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interview-question-on-perfomance-tunning/m-p/3676850#M885454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T07:52:11Z</dc:date>
    </item>
  </channel>
</rss>

