<?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: Program - indexes in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-indexes/m-p/4005531#M956891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i check in ST05, indexes are properly used (in Explain button). But when i check in SM50 during execution all sql statements are read sequentially (even though indexes are used in the statements), cause poor performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below statement uses primary index, but shows sequential read during execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT matnr maktx&lt;/P&gt;&lt;P&gt;      INTO TABLE it_makt&lt;/P&gt;&lt;P&gt;      FROM makt&lt;/P&gt;&lt;P&gt;      FOR ALL ENTRIES IN it_main&lt;/P&gt;&lt;P&gt;      WHERE matnr EQ it_main-matnr and spras = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Praveen Lobo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jun 2008 10:00:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-23T10:00:54Z</dc:date>
    <item>
      <title>Program - indexes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-indexes/m-p/4005528#M956888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the major problem is, even though the reports made use of primary and secondary indexs, they are going to sequential read instead of direct read and the performance is badly affected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oracle is used as SAP database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Praveen Lobo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 05:16:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-indexes/m-p/4005528#M956888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T05:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Program - indexes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-indexes/m-p/4005529#M956889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;With this input we cant suggest you anythg. Eloborate on your problem or post the code snippet here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 05:43:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-indexes/m-p/4005529#M956889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T05:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Program - indexes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-indexes/m-p/4005530#M956890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Serquential and direct read says nothing about performance, the difference is only that you read more records in a sequence instead of only once, as in SELECT SINGLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course it takes longer if you read more, but you say that you need then you have to pay for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL trace:&lt;/P&gt;&lt;P&gt;/people/siegfried.boes/blog/2007/09/05/the-sql-trace-st05-150-quick-and-easy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check you SQL statement summary, if the minimal time per record is larger 5000 micro seconds, then you should indexes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should have a look at the number of records, which are read, if this is large, then you should rethink whether you really need that many records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 07:44:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-indexes/m-p/4005530#M956890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T07:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Program - indexes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-indexes/m-p/4005531#M956891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i check in ST05, indexes are properly used (in Explain button). But when i check in SM50 during execution all sql statements are read sequentially (even though indexes are used in the statements), cause poor performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below statement uses primary index, but shows sequential read during execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT matnr maktx&lt;/P&gt;&lt;P&gt;      INTO TABLE it_makt&lt;/P&gt;&lt;P&gt;      FROM makt&lt;/P&gt;&lt;P&gt;      FOR ALL ENTRIES IN it_main&lt;/P&gt;&lt;P&gt;      WHERE matnr EQ it_main-matnr and spras = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Praveen Lobo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 10:00:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-indexes/m-p/4005531#M956891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T10:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Program - indexes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-indexes/m-p/4005532#M956892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do the indexes exist on oracle - check in se11&lt;/P&gt;&lt;P&gt;have you sumarised by table access and aggregated by table in st05 to see exactly which table is taking all the time?&lt;/P&gt;&lt;P&gt;Have you checked on explain sql for all accesses to the table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 14:46:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-indexes/m-p/4005532#M956892</guid>
      <dc:creator>alison_lloyd</dc:creator>
      <dc:date>2008-06-23T14:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Program - indexes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-indexes/m-p/4005533#M956893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;One tip for performance tuning: For ex. if you are using the query as U mentioned on MARA and using for all entries.&lt;/P&gt;&lt;P&gt;The sys searches for all the fields within the internal table.&lt;/P&gt;&lt;P&gt;Define an int table say it_matnr with one field MATNR.&lt;/P&gt;&lt;P&gt;pass all the MATNRs from it_it_main into it_matnr&lt;/P&gt;&lt;P&gt;and then use in the query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward suitably, if this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Raghu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 16:56:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-indexes/m-p/4005533#M956893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T16:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Program - indexes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-indexes/m-p/4005534#M956894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are there duplicate material numbers in it_main if so define it_main_aux, populate with it_main entries sort by matnr and delete adjacent duplicates using matnr then use this as your for all entries table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 12:47:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-indexes/m-p/4005534#M956894</guid>
      <dc:creator>alison_lloyd</dc:creator>
      <dc:date>2008-06-24T12:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Program - indexes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-indexes/m-p/4005535#M956895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; The below statement uses primary index, but shows sequential read during execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what do you really read in the ST05, go to the summary by SQL statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That does the line for this statement tell you&lt;/P&gt;&lt;P&gt;duration&lt;/P&gt;&lt;P&gt;executions&lt;/P&gt;&lt;P&gt;records&lt;/P&gt;&lt;P&gt;mintime/rec     ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this numbers then I can see what you mean with bad performance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 13:05:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-indexes/m-p/4005535#M956895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T13:05:38Z</dc:date>
    </item>
  </channel>
</rss>

