<?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: About Index in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-index/m-p/3667675#M883416</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depends on your database and its so called optimizer.&lt;/P&gt;&lt;P&gt;I can speak about Oracle 10, the cost based optimizer is very advanced and will pick the most effective access path to the data (with the least "cost", whatever this exactly means) for that very simple case you are describing.&lt;/P&gt;&lt;P&gt;However Oracle has bugs too, and in very complex cases (e.g. table with seven indexes, query using some fields from index1, some from index2, some non-index fields) I've seen it not using the best index.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Apr 2008 12:03:24 GMT</pubDate>
    <dc:creator>ThomasZloch</dc:creator>
    <dc:date>2008-04-15T12:03:24Z</dc:date>
    <item>
      <title>About Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-index/m-p/3667673#M883414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have doubt in using index. If i am having 2 index for a table T.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;index 1 having field F1 and Index 2 having Field F2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My doubt is&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;1. if i use field F1 and some other fields in the single query,will index work. or i have to use index field only in the query in order to index to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose query is like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from T &lt;/P&gt;&lt;P&gt;     into table itab&lt;/P&gt;&lt;P&gt;  where F1 = '0202' and &lt;/P&gt;&lt;P&gt;            F3 = '122' .&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. if i used more than one index in the same query , will my index works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose query is like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from T &lt;/P&gt;&lt;P&gt;     into table itab&lt;/P&gt;&lt;P&gt;  where F1 = '0202' and &lt;/P&gt;&lt;P&gt;            F2 = '122'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          Thanks in Advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 11:54:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-index/m-p/3667673#M883414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T11:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: About Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-index/m-p/3667674#M883415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If any field has an index, and we use this field&lt;/P&gt;&lt;P&gt;   in the where condition,&lt;/P&gt;&lt;P&gt;  then the database automatically uses the respective index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. So to your question &lt;/P&gt;&lt;P&gt;    1. Yes, the index will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    2. Yes, both indexes will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 11:56:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-index/m-p/3667674#M883415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T11:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: About Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-index/m-p/3667675#M883416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depends on your database and its so called optimizer.&lt;/P&gt;&lt;P&gt;I can speak about Oracle 10, the cost based optimizer is very advanced and will pick the most effective access path to the data (with the least "cost", whatever this exactly means) for that very simple case you are describing.&lt;/P&gt;&lt;P&gt;However Oracle has bugs too, and in very complex cases (e.g. table with seven indexes, query using some fields from index1, some from index2, some non-index fields) I've seen it not using the best index.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 12:03:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-index/m-p/3667675#M883416</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-04-15T12:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: About Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-index/m-p/3667676#M883417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for answer.My another doubt is how many index is recommended to use for an table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose my table has 12 index and if i use the 12th index,will it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 12:19:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-index/m-p/3667676#M883417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T12:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: About Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-index/m-p/3667677#M883418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If a table has 12 fields, then we can&lt;/P&gt;&lt;P&gt;    create as many index as we like (depending max&lt;/P&gt;&lt;P&gt;     as per the database)&lt;/P&gt;&lt;P&gt;2. The index can be based on one field only,&lt;/P&gt;&lt;P&gt;   or a combination of fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. The fields (apart from the primary key(s))&lt;/P&gt;&lt;P&gt;    which are more used in select queries&lt;/P&gt;&lt;P&gt;    are the target for making indexes on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 08:11:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-index/m-p/3667677#M883418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T08:11:54Z</dc:date>
    </item>
  </channel>
</rss>

