<?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: Table Index in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/1293085#M156046</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all.i would like to know more about creating indexes for tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my select statement below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;START OF CODING----&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT n&lt;SUB&gt;tplnr n&lt;/SUB&gt;equnr n&lt;SUB&gt;matnr n&lt;/SUB&gt;qmart&lt;/P&gt;&lt;P&gt;              n&lt;SUB&gt;qmnum n&lt;/SUB&gt;priok n&lt;SUB&gt;revnr n&lt;/SUB&gt;qmgrp&lt;/P&gt;&lt;P&gt;              y&lt;SUB&gt;sernr y&lt;/SUB&gt;bdmng y&lt;SUB&gt;pspnr y&lt;/SUB&gt;plnnr y~plnal&lt;/P&gt;&lt;P&gt;              dd&lt;SUB&gt;doknr dd&lt;/SUB&gt;dokar dd&lt;SUB&gt;dokvr dd&lt;/SUB&gt;doktl dd~dokob&lt;/P&gt;&lt;P&gt;            &lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE gt_itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM viqmel AS n JOIN yepse_tech_obj AS y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ON n&lt;SUB&gt;equnr = y&lt;/SUB&gt;equnr&lt;/P&gt;&lt;P&gt;AND n&lt;SUB&gt;proid = y&lt;/SUB&gt;pspnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN drad AS dd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ON dd&lt;SUB&gt;objky=y&lt;/SUB&gt;pspnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN lt_drad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE y~equnr IS NOT NULL&lt;/P&gt;&lt;P&gt;AND y~pspnr = lt_drad-pspnr&lt;/P&gt;&lt;P&gt;AND n~tplnr IN tplnr&lt;/P&gt;&lt;P&gt;AND n~equnr IN equnr&lt;/P&gt;&lt;P&gt;AND n~qmart IN so_qmart&lt;/P&gt;&lt;P&gt;AND n~iwerk IN so_iwerk&lt;/P&gt;&lt;P&gt;AND n~swerk IN so_swerk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;END OF CODING----&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currently i am trying to do some program enhancement to it as it takes a very long time for the system to run when the 3 tables are joined above.&lt;/P&gt;&lt;P&gt;if the method of table index is faster, how do i go about implementing it to the above code?&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Apr 2007 15:53:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-24T15:53:22Z</dc:date>
    <item>
      <title>Table Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/1293078#M156039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to know what are disadvantages of having more number of Indexes on a table with million of records. I have a idea updates to the tables gets slow down. Any body have fair and clear picture how this affetcs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2006 14:34:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/1293078#M156039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-02T14:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/1293079#M156040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While doing select DB will confuse which one to use.&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>Tue, 02 May 2006 14:37:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/1293079#M156040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-02T14:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/1293080#M156041</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;one  should use the indexes basically to retreive the data faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the no. of indexes are high, then it might affect the performance .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can have a detailed analysis of this usin SQL Trace . Transaction Code for this is ST05.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also do the runtime analysis to check the performance of your code using transaction code SE30. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So based on the results , you can get the clear idea of the table indexes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kunal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2006 14:45:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/1293080#M156041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-02T14:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/1293081#M156042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Durgesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only use of index is faster access of data base tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Always use all the fields for which the index has been created in &amp;lt;b&amp;gt;where clause in Select statements&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit Mishra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2006 14:50:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/1293081#M156042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-02T14:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/1293082#M156043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having too much index on the DB will make it slow the reason being , you know you have DB chunks and as well as Db spaces . When you execute the select statement on the table that have lot of indexes it&amp;#146;s confuse compiler which combination to be used and if your index have the common fields it try to gather all and then take the results in to buffer. In this way you&amp;#146;re wasting Db resources as well as creating hurdle for performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this&amp;#146;ll give you idea .pl..award the points &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Saquib khan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2006 15:06:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/1293082#M156043</guid>
      <dc:creator>former_member181966</dc:creator>
      <dc:date>2006-05-02T15:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/1293083#M156044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this a Z table or an SAP table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2006 15:16:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/1293083#M156044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-02T15:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/1293084#M156045</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; &amp;lt;b&amp;gt;We should not create more secondary indexes as Indexes have to be updated each time the database table is changed.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Few points to be remembered while creating secondary indexes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; So, its better not to create multiple secondary indexes.&lt;/P&gt;&lt;P&gt;As a rule, secondary indexes should not contain more than four fields, and you should not have more than five indexes for a single database table. If a table has more than five indexes, you run the risk of the optimizer choosing the wrong one for a particular operation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this reason, you should avoid indexes with overlapping contents. Secondary indexes should contain columns that you use frequently in a selection, and that are as highly selective as possible. The fewer table entries that can be selected by a certain column, the higher that column's selectivity. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Place the most selective fields at the beginning of the index. Your secondary index should be so selective that each index entry corresponds to at most five percent of the table entries. If this is not the case, it is not worth creating the index. You should also avoid creating indexes for fields that are not always filled, where their value is initial for most entries in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sailaja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2006 16:15:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/1293084#M156045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-02T16:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/1293085#M156046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all.i would like to know more about creating indexes for tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my select statement below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;START OF CODING----&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT n&lt;SUB&gt;tplnr n&lt;/SUB&gt;equnr n&lt;SUB&gt;matnr n&lt;/SUB&gt;qmart&lt;/P&gt;&lt;P&gt;              n&lt;SUB&gt;qmnum n&lt;/SUB&gt;priok n&lt;SUB&gt;revnr n&lt;/SUB&gt;qmgrp&lt;/P&gt;&lt;P&gt;              y&lt;SUB&gt;sernr y&lt;/SUB&gt;bdmng y&lt;SUB&gt;pspnr y&lt;/SUB&gt;plnnr y~plnal&lt;/P&gt;&lt;P&gt;              dd&lt;SUB&gt;doknr dd&lt;/SUB&gt;dokar dd&lt;SUB&gt;dokvr dd&lt;/SUB&gt;doktl dd~dokob&lt;/P&gt;&lt;P&gt;            &lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE gt_itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM viqmel AS n JOIN yepse_tech_obj AS y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ON n&lt;SUB&gt;equnr = y&lt;/SUB&gt;equnr&lt;/P&gt;&lt;P&gt;AND n&lt;SUB&gt;proid = y&lt;/SUB&gt;pspnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN drad AS dd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ON dd&lt;SUB&gt;objky=y&lt;/SUB&gt;pspnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN lt_drad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE y~equnr IS NOT NULL&lt;/P&gt;&lt;P&gt;AND y~pspnr = lt_drad-pspnr&lt;/P&gt;&lt;P&gt;AND n~tplnr IN tplnr&lt;/P&gt;&lt;P&gt;AND n~equnr IN equnr&lt;/P&gt;&lt;P&gt;AND n~qmart IN so_qmart&lt;/P&gt;&lt;P&gt;AND n~iwerk IN so_iwerk&lt;/P&gt;&lt;P&gt;AND n~swerk IN so_swerk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;END OF CODING----&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currently i am trying to do some program enhancement to it as it takes a very long time for the system to run when the 3 tables are joined above.&lt;/P&gt;&lt;P&gt;if the method of table index is faster, how do i go about implementing it to the above code?&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 15:53:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/1293085#M156046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T15:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/1293086#M156047</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;  Just an index does not reduce the execution time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  In the select which you have written, there are few more corrections to be made.&lt;/P&gt;&lt;P&gt;1) corresponding fields.. It deproves performance.&lt;/P&gt;&lt;P&gt;2) do not use inner join and as well for all entries in the same select. It also deproves performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sailaja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 16:09:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/1293086#M156047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T16:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/1293087#M156048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sailaja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from the 2 points that you mentioned, corresponding fields and inner join that will slow down the processing.&lt;/P&gt;&lt;P&gt;is there any other better alternatives?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 15:35:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/1293087#M156048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T15:35:36Z</dc:date>
    </item>
  </channel>
</rss>

