<?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: Primary Index issue on table ECC/SER01 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-index-issue-on-table-ecc-ser01/m-p/683065#M30456</link>
    <description>&lt;P&gt;First step is actualisation of statistics...&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jul 2018 06:39:46 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2018-07-18T06:39:46Z</dc:date>
    <item>
      <title>Primary Index issue on table ECC/SER01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-index-issue-on-table-ecc-ser01/m-p/683062#M30453</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I am working on ecc program performance improvement, when I execute my program found that the issue with the SER01 table. using ST05, SAT to measure the changes.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;It seems like the Primary index of table SER01 is not working - In SELECT statement WHERE clause used the primary key + non-index field(SERNR+VBTYP) it takes 100 seconds. but when I use same query with only primary key(SERNR) it is taking 140 seconds. At runtime, I have seen the data in both cases output is same.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;ST05- I can see INDEX UNIQUE SCAN SER01~0 is used.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Question:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;1. In st05 detailed information of index it shows Last statistics date is 11/11/2015 is this something wrong and index table is not updated till date..?&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;2. In se16, total number of records 23,628,275 but in st05 shows 23,598,400. Do both numbers should match approximately..? now the diff is around 30K.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Vishwa&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 07:36:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-index-issue-on-table-ecc-ser01/m-p/683062#M30453</guid>
      <dc:creator>former_member587905</dc:creator>
      <dc:date>2018-07-17T07:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Primary Index issue on table ECC/SER01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-index-issue-on-table-ecc-ser01/m-p/683063#M30454</link>
      <description>&lt;P&gt;1. No statistics since 2015 is bad -&amp;gt; Ask basis to run those on a periodic base&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;2. Did you check for client MANDT in the primary key, implicit use by SELECT statement&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 08:04:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-index-issue-on-table-ecc-ser01/m-p/683063#M30454</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2018-07-17T08:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Primary Index issue on table ECC/SER01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-index-issue-on-table-ecc-ser01/m-p/683064#M30455</link>
      <description>&lt;P&gt;I tried with MANDT it did not help.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 15:14:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-index-issue-on-table-ecc-ser01/m-p/683064#M30455</guid>
      <dc:creator>former_member587905</dc:creator>
      <dc:date>2018-07-17T15:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Primary Index issue on table ECC/SER01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-index-issue-on-table-ecc-ser01/m-p/683065#M30456</link>
      <description>&lt;P&gt;First step is actualisation of statistics...&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 06:39:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-index-issue-on-table-ecc-ser01/m-p/683065#M30456</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2018-07-18T06:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Primary Index issue on table ECC/SER01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-index-issue-on-table-ecc-ser01/m-p/683066#M30457</link>
      <description>&lt;P&gt;Hi Raymond,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;My basis team has run statistics I have attached the latest screenshot. now in the st05 primary key entries are more than the total number of table entries.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;but after the index update also the performance is same, am passing only primary key field which is taking more time than when I pass the primary key + non-indexed field.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Vishwa&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;A href="https://answers.sap.com/storage/temp/170857-2ser010.jpg"&gt;2ser010.jpg&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://answers.sap.com/storage/temp/170859-3ser010.jpg"&gt;3ser010.jpg&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 17:12:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-index-issue-on-table-ecc-ser01/m-p/683066#M30457</guid>
      <dc:creator>former_member587905</dc:creator>
      <dc:date>2018-07-18T17:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Primary Index issue on table ECC/SER01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-index-issue-on-table-ecc-ser01/m-p/683067#M30458</link>
      <description>&lt;P&gt;Don't forget that the execution time is time to find records + time to transfer data from database server to application server. If you remove the non key criteria, more data will be copied.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;What is your database, and which version?&lt;/P&gt;
  &lt;P&gt;(The statistics are statistics, the index itself is updated in nearly real time, only the stats were refreshed, and ony a sample of data were actually analyzed)&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 06:31:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-index-issue-on-table-ecc-ser01/m-p/683067#M30458</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2018-07-19T06:31:14Z</dc:date>
    </item>
  </channel>
</rss>

