<?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 TUNINIG in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuninig/m-p/2575834#M588597</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ashok&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to se11 &amp;lt;b&amp;gt;for best performance tips&amp;lt;/b&amp;gt; follow &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ENVIRONMENT-&amp;gt;EXAMPLES-&amp;gt;PERFORMANCE EXAMPLES&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;plz rewawrd points if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jul 2007 07:07:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-26T07:07:45Z</dc:date>
    <item>
      <title>PERFORMANCE TUNINIG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuninig/m-p/2575833#M588596</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;       Please ans this que&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the role of secondary index in performance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will join conditions in sql queries affect perfomance? how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will sorted internal tables help in performance? how ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASHOK KUMAR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 07:05:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuninig/m-p/2575833#M588596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-26T07:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: PERFORMANCE TUNINIG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuninig/m-p/2575834#M588597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ashok&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to se11 &amp;lt;b&amp;gt;for best performance tips&amp;lt;/b&amp;gt; follow &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ENVIRONMENT-&amp;gt;EXAMPLES-&amp;gt;PERFORMANCE EXAMPLES&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;plz rewawrd points if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 07:07:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuninig/m-p/2575834#M588597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-26T07:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: PERFORMANCE TUNINIG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuninig/m-p/2575835#M588598</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;You create secondary index for a database table when you access the database records using fields that are not in the Primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you create a secondary index using the fields with whihc you query your database most.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is the fields that you use most in the WHERE clause of the SELECT statement. if these fields are not in the Primary key or say not many or in the primary key then you create a secondary index using these fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the database this index gets created and when ever you use these fields in the SELECT query's WHERE clause this INDEX will be used to fetch the data faster&lt;/P&gt;&lt;P&gt;Refer to this related thread&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3061555"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3410637"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;Join  -  Used when the data in the table is less.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;For all entries - Used when the data in the table is huge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer /people/rob.burbank/blog/2007/03/19/joins-vs-for-all-entries--which-performs-better&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorted tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the most appropriate type if you need a table which is sorted as you fill it. You fill sorted tables using the INSERT statement. Entries are inserted according to the sort sequence defined through the table key. Any illegal entries are recognized as soon as you try to add them to the table. The response time for key access is logarithmically proportional to the number of table entries, since the system always uses a binary search. Sorted tables are particularly useful for partially sequential processing in a LOOP if you specify the beginning of the table key in the WHERE condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZREPORT_SORTED1.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF LINE,&lt;/P&gt;&lt;P&gt;COL1 TYPE I,&lt;/P&gt;&lt;P&gt;COL2 TYPE I,&lt;/P&gt;&lt;P&gt;END OF LINE.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA ITAB LIKE SORTED TABLE OF LINE WITH UNIQUE KEY COL1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DO 4 TIMES.&lt;/P&gt;&lt;P&gt;  LINE-COL1 = SY-INDEX.&lt;/P&gt;&lt;P&gt;  LINE-COL2 = SY-INDEX ** 2.&lt;/P&gt;&lt;P&gt;INSERT LINE INTO TABLE ITAB.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CLEAR LINE.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;READ TABLE ITAB WITH TABLE KEY COL1 = 3 &lt;/P&gt;&lt;P&gt;                INTO LINE TRANSPORTING COL2.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;WRITE:   'SY-SUBRC =', SY-SUBRC,&lt;/P&gt;&lt;P&gt;       / 'SY-TABIX =', SY-TABIX.&lt;/P&gt;&lt;P&gt;SKIP.&lt;/P&gt;&lt;P&gt;WRITE: / LINE-COL1, LINE-COL2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output is: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0&lt;/P&gt;&lt;P&gt;SY-TABIX = 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0 9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZREPORT_SORTED2.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF LINE,&lt;/P&gt;&lt;P&gt;        COL1 TYPE I,&lt;/P&gt;&lt;P&gt;        COL2 TYPE I,&lt;/P&gt;&lt;P&gt;      END OF LINE.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA ITAB LIKE SORTED TABLE OF LINE WITH UNIQUE KEY COL1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DO 4 TIMES.&lt;/P&gt;&lt;P&gt;  LINE-COL1 = SY-INDEX.&lt;/P&gt;&lt;P&gt;  LINE-COL2 = SY-INDEX ** 2.&lt;/P&gt;&lt;P&gt;  INSERT LINE INTO TABLE ITAB.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;READ TABLE ITAB WITH KEY COL2 = 16  TRANSPORTING NO FIELDS.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;WRITE:   'SY-SUBRC =', SY-SUBRC,&lt;/P&gt;&lt;P&gt;       / 'SY-TABIX =', SY-TABIX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output is: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0&lt;/P&gt;&lt;P&gt;SY-TABIX = 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 07:10:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuninig/m-p/2575835#M588598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-26T07:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: PERFORMANCE TUNINIG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuninig/m-p/2575836#M588599</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;what is the role of secondary index in performance?&lt;/P&gt;&lt;P&gt;-- If the criteria field is not a primary key field then u should use secondary index.  secondary indexes occupies more space but are very useful when serach field is not a key field,,  if it is then it will serach using that index hence data fetch will be v fast.&lt;/P&gt;&lt;P&gt;will join conditions in sql queries affect perfomance? how?&lt;/P&gt;&lt;P&gt;--  if primary key fields are joined then there is no performacne issue at all , but if not key field are used then take more time to join tables.  again if more than three field are used in join then it may affect performance.&lt;/P&gt;&lt;P&gt;will sorted internal tables help in performance? how ?&lt;/P&gt;&lt;P&gt;---yes,  whille searching internal table key fields are access as per index...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jogdand M B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 07:15:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuninig/m-p/2575836#M588599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-26T07:15:25Z</dc:date>
    </item>
  </channel>
</rss>

