<?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: index in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/1807950#M346668</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at below link for procedure of creating secondary indexes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21eb47446011d189700000e8322d00/content.htm"&amp;gt;Creating Seconadry Indexes&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also have a look at below link which will show you how to use the same effectively in SELECT statement.&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21eb2d446011d189700000e8322d00/content.htm"&amp;gt;How to use secondary indexes&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;*Please mark all the helpful answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Dec 2006 08:35:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-05T08:35:10Z</dc:date>
    <item>
      <title>index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/1807949#M346667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;  i had totally 1 lac of records in my ztable ,i picking those records by using where clause with primary key but that table having only one p.key that i used,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but also iam not able to improve the performance, for that wat i have to do&lt;/P&gt;&lt;P&gt; need some clarifications regarding this ,&lt;/P&gt;&lt;P&gt;  for that i create secondary index one of the field in the ztable and how to use this seconday index in my select query and how to create secondary index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  pls claify this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Thanks&lt;/P&gt;&lt;P&gt;   Rams&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 08:29:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/1807949#M346667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T08:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/1807950#M346668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at below link for procedure of creating secondary indexes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21eb47446011d189700000e8322d00/content.htm"&amp;gt;Creating Seconadry Indexes&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also have a look at below link which will show you how to use the same effectively in SELECT statement.&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21eb2d446011d189700000e8322d00/content.htm"&amp;gt;How to use secondary indexes&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;*Please mark all the helpful answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 08:35:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/1807950#M346668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T08:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/1807951#M346669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rams,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you selecting data in a single shot or are you using SELECT.. ENDSELECT..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way that you can do is, use SELECT * INTO TABLE ITAB where primarykey = XYZ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below links to get the help on SECONDARY INDEX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="269510"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="218305"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="143345"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="32784"&gt;&lt;/A&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;Sreekanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 14:16:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/1807951#M346669</guid>
      <dc:creator>sreekanthgo</dc:creator>
      <dc:date>2006-12-05T14:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/1807952#M346670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want to create secondary index for your table - please check all programs where this table is used to buld index which can be useful for different programs, you may add some more fields or put them into order which will suit most of the programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The index is used by DB automatically, AFTER reorg/runstats on DB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 21:22:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/1807952#M346670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T21:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/1807953#M346671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rams,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your Z table has only one field as primary key and you are using that key in the where clause. The database automatically creates an index on the primary key. So there is no requirement of creating a secondary index. Your primary index would be used in your select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using Select *, it might help if you specify the fields that you are using in your program instead of picking all fields of your table.&lt;/P&gt;&lt;P&gt;Also in case you are using Select-Endselect it would be better to instead pick up all the data in one shot in an internal table and then loop at that internal table to process each record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this and see if your performance improves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2006 09:13:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/1807953#M346671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-07T09:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/1807954#M346672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   First we need to know how you have coded.There are lot of ways to improve the performance.You have mentioned already you are accesing the table by primary key .No problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Paste your code first&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2006 03:33:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/1807954#M346672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-13T03:33:08Z</dc:date>
    </item>
  </channel>
</rss>

