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

Queries

Former Member
0 Likes
496

Hi Experts,

1.How many primary keyfields can we create in a custom table?

2.What is the dis.adv. of using Secondary index?

Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
473

All the table columns can be defined as key fields (not recommended)

Creating more indices is creating unnecessary overhead. Secondary index is never recommeneded except for some special cases.

Regards,

Sandeep Josyula

*Reward for helpful answers

4 REPLIES 4
Read only

Former Member
0 Likes
474

All the table columns can be defined as key fields (not recommended)

Creating more indices is creating unnecessary overhead. Secondary index is never recommeneded except for some special cases.

Regards,

Sandeep Josyula

*Reward for helpful answers

Read only

Former Member
0 Likes
473

There must be only 1 primary index, its maximum lenght you can find in the documentation. Indexes help to improve performance of sql queries, but keep in mind that the number of seconadary indexes should be limited because they are stored in database and they slow down saving data in database. There are also other performance reasons to limit their number.

Read only

0 Likes
473

Hi,

can any one pls explain what is the purpose of indix in the table, and what is primary index and secondary index ?

Thanks

Read only

0 Likes
473

Hi

Index is basically helpful while we do Database records retrival, search etc.

Primary Index is automatically created by the system for all the Key fields. Primary Index is always 0.

If we don't want to make a field, Primary field and still want to specify Index, we can create secondary index for that field. Secondary index starts with any number, alphabet, except 0.

Hope this helps.

Regards

- Atul