<?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 Index in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3324834#M796437</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;Is it mandatory to use all the fields of an index in the where clause of a select statement in terms of performance.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Feb 2008 05:48:52 GMT</pubDate>
    <dc:creator>kiran_k8</dc:creator>
    <dc:date>2008-02-04T05:48:52Z</dc:date>
    <item>
      <title>Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3324834#M796437</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;Is it mandatory to use all the fields of an index in the where clause of a select statement in terms of performance.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 05:48:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3324834#M796437</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2008-02-04T05:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3324835#M796438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its not mandatory that you need to use &lt;STRONG&gt;all.&lt;/STRONG&gt;. use what all you wanted.. but what ever you choose its better to be a primary key field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 05:50:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3324835#M796438</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-02-04T05:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3324836#M796439</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;YES it is Good to use all the fields of an index in the where clause of a select statement in terms of performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Better to pass...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specially in case of SELECT single...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REward if helpful..&lt;/P&gt;&lt;P&gt;GAURAV J.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: GAURAV on Feb 4, 2008 6:51 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 05:51:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3324836#M796439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T05:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3324837#M796440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check for Equality and Link Using AND The database index search is particularly efficient if you check &lt;STRONG&gt;all index fields for equality (= or EQ)&lt;/STRONG&gt; and link the expressions using AND.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 06:01:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3324837#M796440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T06:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3324838#M796441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is always good to use index for the selction criteria of your select statement, however you need not use all the index.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 06:03:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3324838#M796441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T06:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3324839#M796442</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;Getting a mixed response.Looking forward to more replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 06:34:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3324839#M796442</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2008-02-04T06:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3324840#M796443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select b~mblnr&lt;/P&gt;&lt;P&gt;         b~menge&lt;/P&gt;&lt;P&gt;         b~lfbnr&lt;/P&gt;&lt;P&gt;         b~lfpos&lt;/P&gt;&lt;P&gt;         from mseg as b&lt;/P&gt;&lt;P&gt;         inner join mkpf as a&lt;/P&gt;&lt;P&gt;         on b&lt;SUB&gt;mblnr = a&lt;/SUB&gt;mblnr&lt;/P&gt;&lt;P&gt;         into corresponding fields of table it_rjct&lt;/P&gt;&lt;P&gt;         where b~werks = p_werks and&lt;/P&gt;&lt;P&gt;        a~budat between it_cperiod-begda and it_cperiod-  endda and&lt;/P&gt;&lt;P&gt;               b~bwart = '122' and&lt;/P&gt;&lt;P&gt;               &lt;STRONG&gt;b~ebeln NE SPACE.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In MSEG werks and bwart are in secondary index.&lt;/P&gt;&lt;P&gt;In MKPF budat is in secondary  index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does the above select statement satisifies the following conditions in terms of usage of indexes.How to fine tune it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Check for Equality and Link Using AND&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The database index search is particularly efficient if you check all index fields for equality (= or EQ) and link the expressions using AND.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Use Positive Conditions&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The database system only supports queries that describe the result in positive terms, for example, EQ or LIKE. It does not support negative expressions like NE or NOT LIKE.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If possible, avoid using the NOT operator in the WHERE clause, because it is not supported by database indexes; invert the logical expression instead.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kiran K on Feb 4, 2008 10:49 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 09:45:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3324840#M796443</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2008-02-04T09:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3324841#M796444</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;ITS not mandatory&lt;/P&gt;&lt;P&gt;But to raise performance you should try to pass it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS,&lt;/P&gt;&lt;P&gt;GAURAV J.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 09:57:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3324841#M796444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T09:57:05Z</dc:date>
    </item>
  </channel>
</rss>

