<?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/3544750#M852787</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when u create an index in Data Dictionary..how do we call it in a program or report..?totally how many we can create?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Mar 2008 17:57:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-14T17:57:59Z</dc:date>
    <item>
      <title>index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3544750#M852787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when u create an index in Data Dictionary..how do we call it in a program or report..?totally how many we can create?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2008 17:57:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3544750#M852787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-14T17:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3544751#M852788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, you don't "call " and index in a program. An index is created in a transparent table to optimize data access. For example, if you have a non-key field, and you use it in a WHERE condition frequently in your programs, than you should consider creating an index for this field, because it will speed up your query. But you don't need to "call" the index, if it is created, it' s automatically used. I don't know if there is a database limit for index, but you can create with up to 3 characters, including letters, what in theory gives you a huge number of possibilities (more than you need and should create).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2008 18:20:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3544751#M852788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-14T18:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3544752#M852789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you create am index in Data Dictionary for any table, you cannot directly call it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The index that is used to access a database table is determined by the optimizer based on the selection criteria the select is executed with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in order to have the optimizer select your index provide values for every index field in your where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a primary key of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field1&lt;/P&gt;&lt;P&gt;field2&lt;/P&gt;&lt;P&gt;field3&lt;/P&gt;&lt;P&gt;field4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and a secondary index of &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field5&lt;/P&gt;&lt;P&gt;field1&lt;/P&gt;&lt;P&gt;field2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and you provide criteria for field1 and 2 only in your where condition the optimizer will go for the primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to have your index used you need at least to provide values for field5 in your where condition, all fields of the index would be best.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In regard to the number of index you should only create as much index as necessary and as little as possible, because any new index will slow down the write access to that table because it has to be updated in addition to the data in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2008 18:21:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3544752#M852789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-14T18:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3544753#M852790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please do not duplicate or cross post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2008 18:21:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3544753#M852790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-14T18:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3544754#M852791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U create an index for a table so that if u can speed up the querying on it. U dont call the index itself in a report..Again care should be taken regarding the number of indeces u can create, Usually u create indeces for master table...and not transactional tables...or u create indeces for table which are queried more than updated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Mar 2008 22:11:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3544754#M852791</guid>
      <dc:creator>former_member125661</dc:creator>
      <dc:date>2008-03-15T22:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3544755#M852792</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;No need to call any index from program. Bcz SAP take cares of those things and u can not call it too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally indexes are used to organize the data in order to retrive the data in Faster manner. So don't think of calling indexes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can create upto 9 Indexes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Mar 2008 14:39:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3544755#M852792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-16T14:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3544756#M852793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;indexes main purpose is to retrieve the data easily and faster&lt;/P&gt;&lt;P&gt;from the database table.&lt;/P&gt;&lt;P&gt;--&amp;gt;When a base table has multiple indices, the where clause should be in the order of the index, either a primary or a secondary index. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To choose an index, the optimizer checks the field names specified in the where clause and then uses an index that has the same order of the fields. One more tip is that if a table begins with MANDT, while an index does not, there is a high possibility that the optimizer might not use that index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In certain scenarios, it is advisable to check whether a new index can speed up the performance of a program. This will come handy in programs that access data from the finance tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vineela.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2008 06:24:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3544756#M852793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-21T06:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3544757#M852794</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;When you activate an object say ODS / DSO, the system automatically generate an index based on the key fields and this is &lt;STRONG&gt;primary index&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition if you wish to create more indexes , then they are called &lt;STRONG&gt;secondary&lt;/STRONG&gt;  &lt;STRONG&gt;indexes.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;The primary index is distinguished from the secondary indexes of a table. The primary index contains the key fields of the table and a pointer to the non-key fields of the table. The primary index is created automatically when the table is created in the database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also create further indexes on a table. These are called secondary indexes. This is necessary if the table is frequently accessed in a way that does not take advantage of the sorting of the primary index for the access. Different indexes on the same table are distinguished with a three-place index identifier.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets say you have an ODS and the Primary Key is defined as Document Nbr, Cal_day. These two fields insure that the records are unqiue, but lets lay you frequently want to run queries where you selct data based on the Bus Area and Document Type. In this case, we could create a secondary index on Bus Area, Doc Type. Then when the query runs, instead of having to read every record, it can use the index to select records that contain just the Bus Area and Doc type values you are looking for. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just because you have a secondary index however, does not mean it will be used or should be used. This gets into the cardinality of the fields you are thinking about indexing. For most DBs, an index must be fairly selective to be of any value. That is, given the values you provide in a query for Bus Area and Doc Type, if it will retrieve a very small percentage of the rows form the table, the DB probably should use the index, but if the it would result in retrieving say 40% of the rows, it si almost always better to just read the entire table.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having current DB statististics and possibly histograms can be very important as well. The DB statistics hold information on how many distinct values a field has, e.g. how many distinct values of Business Area are there, how many doc types.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondary indexes are usally added to ODS (which you can add using Admin Wkbench) based on your most frequently used queries. Secondary indexes might also be added to selected Dimension and Master data tables as well, but that usually requires a DBA, or someone with similar privileges to create in BW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2008 06:30:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3544757#M852794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-21T06:30:38Z</dc:date>
    </item>
  </channel>
</rss>

