Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

indexes

Former Member
0 Likes
853

why r we using indexes for tables.what is the significance of indexes?

why r we using indexes for tables.what is the significance of indexes?

5 REPLIES 5
Read only

Former Member
0 Likes
837
Read only

Former Member
0 Likes
837

Indexes are used to speed up the accesss of data from Database tables.

Generally Primary indexes are created by the SAP itself

It allows us to create secondary indexes

Read only

Former Member
0 Likes
837

You should only create secondary indexes, for database

tables from which you mainly read, since indexes have to be

updated each time the database table is changed. secondary

indexes should contain columns that you use frequently in a

selection, and that are as highly selective as possible to

improve performance..

Regards,

Santosh

Read only

Former Member
0 Likes
837

hi,

Generally indexes are used to increase the speed of the database tables.

Primary indexes are created by SAP itself.

You can create secondary indexes, for database

tables from which you mainly read, since indexes have to be

updated each time the database table is changed. secondary

indexes should contain columns that you use frequently in a

selection, and that are as highly selective as possible to

improve performance..

Read only

Former Member
0 Likes
837

Hi Jayasankar,

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.

Secondary index: Additional indexes could be created considering the most frequently accessed field of the table.

An index can be used to speed up the selection of data records from a table.

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.

Only those fields whose values significantly restrict the amount of data are meaningful in an index.

http://www.saptechnical.com/Tutorials/ABAP/SecondaryIndex/Create.htm

Thanks Arjun