<?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 regarding indexes in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-indexes/m-p/3418478#M821058</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any documentation regarding indexes&lt;/P&gt;&lt;P&gt;primary index&lt;/P&gt;&lt;P&gt;secondery index&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 23 Feb 2008 11:14:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-23T11:14:47Z</dc:date>
    <item>
      <title>regarding indexes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-indexes/m-p/3418478#M821058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any documentation regarding indexes&lt;/P&gt;&lt;P&gt;primary index&lt;/P&gt;&lt;P&gt;secondery index&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Feb 2008 11:14:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-indexes/m-p/3418478#M821058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-23T11:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: regarding indexes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-indexes/m-p/3418479#M821059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Primary and secondary indexes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Index: Technical key of a database table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Primary index: 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;Secondary index: Additional indexes could be created considering the most frequently accessed dimensions of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Structure of an Index&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An index can be used to speed up the selection of data records from a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An index can be considered to be a copy of a database table reduced to certain fields. The data is stored in sorted form in this copy. This sorting permits fast access to the records of the table (for example using a binary search). Not all of the fields of the table are contained in the index. The index also contains a pointer from the index entry to the corresponding table entry to permit all the field contents to be read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When creating indexes, please note that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An index can only be used up to the last specified field in the selection! The fields which are specified in the WHERE clause for a large number of selections should be in the first position. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only those fields whose values significantly restrict the amount of data are meaningful in an index. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you change a data record of a table, you must adjust the index sorting. Tables whose contents are frequently changed therefore should not have too many indexes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure that the indexes on a table are as disjunctive as possible.&lt;/P&gt;&lt;P&gt;(That is they should contain as few fields in common as possible. If two indexes on a table have a large number of common fields, this could make it more difficult for the optimizer to choose the most selective index.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Accessing tables using Indexes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The database optimizer decides which index on the table should be used by the database to access data records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must distinguish between the primary index and secondary indexes of a table. The primary index contains the key fields of the table. The primary index is automatically created in the database when the table is activated. If a large table is frequently accessed such that it is not possible to apply primary index sorting, you should create secondary indexes for the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The indexes on a table have a three-character index ID. '0' is reserved for the primary index. Customers can create their own indexes on SAP tables; their IDs must begin with Y or Z.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the index fields have key function, i.e. they already uniquely identify each record of the table, an index can be called a unique index. This ensures that there are no duplicate index fields in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you define a secondary index in the ABAP Dictionary, you can specify whether it should be created on the database when it is activated. Some indexes only result in a gain in performance for certain database systems. You can therefore specify a list of database systems when you define an index. The index is then only created on the specified database systems when activated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Feb 2008 11:17:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-indexes/m-p/3418479#M821059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-23T11:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: regarding indexes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-indexes/m-p/3418480#M821060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Primary Indexes :&lt;/P&gt;&lt;P&gt;A primary index is defined in terms of the primary key fields of a table. It is set up by the system (example: ODS index).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondary Index :&lt;/P&gt;&lt;P&gt;A secondary index is any additional index defined on any combination of other fields. This can be set by the user (example: ODS as from BW3.x).&lt;/P&gt;&lt;P&gt;Secondary indexes can be added to an ODS thru the BW Admin Workbench, but indices on Dim and Master Data tables can usually only be cuilt by your DBA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indexes are useful in combination with DB statistics.&lt;/P&gt;&lt;P&gt;It is interesting to create a secondary index on an ODS if one knows that a certain field or combination of fields will be used as a selection parameter of a query and if this can improve query execution performance (high volumes of data).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out these links for Indexes :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cccad390-0201-0010-5093-fd9ec8157802" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cccad390-0201-0010-5093-fd9ec8157802&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ce7fb368-0601-0010-64ba-fadc985a1f94" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ce7fb368-0601-0010-64ba-fadc985a1f94&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4c0ab590-0201-0010-bd9a-8332d8b4f09c" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4c0ab590-0201-0010-bd9a-8332d8b4f09c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1955ba90-0201-0010-d3aa-8b2a4ef6bbb2" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1955ba90-0201-0010-d3aa-8b2a4ef6bbb2&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sakthi C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;Rewards if useful*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Feb 2008 11:25:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-indexes/m-p/3418480#M821060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-23T11:25:44Z</dc:date>
    </item>
  </channel>
</rss>

