<?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: Indexing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/indexing/m-p/1093236#M101385</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 your are using one of the index make sure you pass all field of the index in where conditions &amp;amp; in order, even if some fields of the index u r not using in that case define that fields in range&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example u r using index say Z01&lt;/P&gt;&lt;P&gt;having bukrs&lt;/P&gt;&lt;P&gt;       hkont&lt;/P&gt;&lt;P&gt;       audat&lt;/P&gt;&lt;P&gt;       belnr&lt;/P&gt;&lt;P&gt;but you only have bukrs hkont &amp;amp; audat value but not belnr in that case create a dummy range say&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF r_belnr OCCURS 0, &lt;/P&gt;&lt;P&gt;         SIGN(1), &lt;/P&gt;&lt;P&gt;         OPTION(2), &lt;/P&gt;&lt;P&gt;         LOW  LIKE f, &lt;/P&gt;&lt;P&gt;         HIGH LIKE f, &lt;/P&gt;&lt;P&gt;      END   OF r_belnr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    select * from BSIS where&lt;/P&gt;&lt;P&gt;                  bukrs in s_bukrs and&lt;/P&gt;&lt;P&gt;                  hkont in s_hkont and&lt;/P&gt;&lt;P&gt;                  audat in s_audat and&lt;/P&gt;&lt;P&gt;                  belnr in R_belnr. &lt;/P&gt;&lt;P&gt;it will improve your performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Nov 2005 21:35:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-18T21:35:45Z</dc:date>
    <item>
      <title>Indexing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/indexing/m-p/1093230#M101379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For a table like BSIS where there are 8 Primary keys( Excluading Client ) ,  and its having three Indexs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i am using 5 Primary Keys with order &lt;/P&gt;&lt;P&gt;BUKRS,AUGDT,GJAHR,BELNR,HKONT . When i am getting data here using one index does the order of Projection is accoring to the data base field postion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though we are changing the order of the keys its not improving the performance and is using the same index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it suggested to go for another index . And asked Basis guy for creating a new index and they say there are already 4 Index's here and cant create any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck.&lt;/P&gt;&lt;P&gt;Jing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2005 21:03:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/indexing/m-p/1093230#M101379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-18T21:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/indexing/m-p/1093231#M101380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create as many indexes as you want, the system will allow it.  Be forewarned that when creating indexes there could be a decrease in performance when updating or inserting records.  This is the only bad thing.  Creating indexes helps a lot when accessing data. If there is not an index that matches your WHERE clause of the select statement, I would first try to adjust your WHERE clause in such a way where it does use all of the key fields of the index, also make sure that the fields are in the correct order of the index.  If you can not,  then I would create an index, but monitor carefully after implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2005 21:12:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/indexing/m-p/1093231#M101380</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-11-18T21:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/indexing/m-p/1093232#M101381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you know BUKRS,GJAHR and BELNR Why not just go to BSEG? Once there take the item with the HKONT you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2005 21:14:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/indexing/m-p/1093232#M101381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-18T21:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/indexing/m-p/1093233#M101382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We can create more than 4 indexes on a transparent table. In my server I can see 9 indexes on BKPF table.&lt;/P&gt;&lt;P&gt;But as we create more indexes on a table performance while posting data to these table will come down, may be that is the basis people worry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2005 21:16:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/indexing/m-p/1093233#M101382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-18T21:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/indexing/m-p/1093234#M101383</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;Check if statistics is run on this table. If statistics is not updated the optimizer may not pick right index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is no other option you can try using hints for index&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%_HINTS ORACLE 'INDEX("tablename" "tablename~indexname")'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This hint syntax is for ORACLE.&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;Kalpana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2005 21:17:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/indexing/m-p/1093234#M101383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-18T21:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/indexing/m-p/1093235#M101384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you put the 5 fields in the order of the index &amp;amp; for the fields you don't know, can you still specify them in the SELECT with wildcards ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. ZUONR LIKE '%' AND AUGBL LIKE '%', this will make the system look at the primary index..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2005 21:17:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/indexing/m-p/1093235#M101384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-18T21:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/indexing/m-p/1093236#M101385</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 your are using one of the index make sure you pass all field of the index in where conditions &amp;amp; in order, even if some fields of the index u r not using in that case define that fields in range&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example u r using index say Z01&lt;/P&gt;&lt;P&gt;having bukrs&lt;/P&gt;&lt;P&gt;       hkont&lt;/P&gt;&lt;P&gt;       audat&lt;/P&gt;&lt;P&gt;       belnr&lt;/P&gt;&lt;P&gt;but you only have bukrs hkont &amp;amp; audat value but not belnr in that case create a dummy range say&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF r_belnr OCCURS 0, &lt;/P&gt;&lt;P&gt;         SIGN(1), &lt;/P&gt;&lt;P&gt;         OPTION(2), &lt;/P&gt;&lt;P&gt;         LOW  LIKE f, &lt;/P&gt;&lt;P&gt;         HIGH LIKE f, &lt;/P&gt;&lt;P&gt;      END   OF r_belnr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    select * from BSIS where&lt;/P&gt;&lt;P&gt;                  bukrs in s_bukrs and&lt;/P&gt;&lt;P&gt;                  hkont in s_hkont and&lt;/P&gt;&lt;P&gt;                  audat in s_audat and&lt;/P&gt;&lt;P&gt;                  belnr in R_belnr. &lt;/P&gt;&lt;P&gt;it will improve your performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2005 21:35:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/indexing/m-p/1093236#M101385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-18T21:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/indexing/m-p/1093237#M101386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jing,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best alternative for you is use BSEG table as suggested by Rob Burbank. Since you have the entire key you will get best performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also creating new indexes on these tables is a costly one, it needs more memory and also decreases the performance if you have toomany indexes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Giridhar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Giridhar Nayudu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2005 22:02:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/indexing/m-p/1093237#M101386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-18T22:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/indexing/m-p/1093238#M101387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jing,&lt;/P&gt;&lt;P&gt; First of all would like to know what is the version of Oracle DB that you are using , Previously when you are selecting data from the data base you need to pass the Primary keys in the way it is there in the table .&lt;/P&gt;&lt;P&gt;this is also one performance issue. In the latest Oracle DB you can pass in any way.&lt;/P&gt;&lt;P&gt;If you cannot create indexes then the best way is to pass the Primary keys in the Asecnding order and check the SQL Trace about the performance . And if you can create a Index then that is the best alternative , but that will get down the performance when you start deleting or inserting the records in that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure that the keys are in the ascending order , as this will make sure that it picks the index in that way.You can check this even in the SQL Trace as of what index it is fetching.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using the Latest Oracle DB then you can pass the keys in any way as this not make a difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Naidu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2005 16:07:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/indexing/m-p/1093238#M101387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-21T16:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/indexing/m-p/1093239#M101388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jing - if your question is answered, please close the thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2005 19:37:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/indexing/m-p/1093239#M101388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-25T19:37:34Z</dc:date>
    </item>
  </channel>
</rss>

