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

please answer this immediately.........

Former Member
0 Likes
633

hi frnds,

i am new to sdn. pls answer this question.

1. what is primary index and secondary index?

thanks in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
605

primary key is created when u create the db table.

secondar index is when the primary key doesnt satistfy your data fetch needs, as in you select data more frequently which is not part of the primary key fields, then secondary index is created.

During runtime, the optimizer chooses the primary index , if the where condition doesnt form the part of primary key fields, then it search for the secondary index and uses the index to fetch the data fast.

regards,

madhumitha

5 REPLIES 5
Read only

andreas_mann3
Active Contributor
Read only

rodrigo_paisante3
Active Contributor
0 Likes
605

Hi,

Primary index is aumatically generated the movement we create a database table.

the secondary index is given in addition to the Primary Index already existing for the table ,so as to improve the data retrieval consistently, so as a result the perforamance is also increased and secondary index is also helpful in reducing the load on the Database, but do not create a lot of this..

Read only

Former Member
0 Likes
606

primary key is created when u create the db table.

secondar index is when the primary key doesnt satistfy your data fetch needs, as in you select data more frequently which is not part of the primary key fields, then secondary index is created.

During runtime, the optimizer chooses the primary index , if the where condition doesnt form the part of primary key fields, then it search for the secondary index and uses the index to fetch the data fast.

regards,

madhumitha

Read only

Former Member
0 Likes
605

hi

primary index for an table consist of all its key field

where as ssecondary index is created by us

and if no index is created table always refer to primary index for all purpose to fetch the data

Read only

Former Member
0 Likes
605

Thanq very much frnds.