If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Sybase > Quetion on Sybase Indexes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-10-11, 04:59
jvijay jvijay is offline
Registered User
 
Join Date: Jun 2010
Posts: 3
Quetion on Sybase Indexes

Hi ,

For one of my large tables, we have a primary key on 5 columns (in the order A,B,C,D and E).

Is it ok to create another non unique index with few of the pimarry columns say D,E,C?

Will this help speed up the retrival of rows when searched on columns D,E and C? Or is this index redundant and overhead?

any help is much appreciated.

Thankns,
VJ.
Reply With Quote
  #2 (permalink)  
Old 11-14-11, 08:02
pdreyer pdreyer is offline
Registered User
 
Join Date: May 2005
Location: South Africa
Posts: 1,268
Quote:
Originally Posted by jvijay View Post
Hi ,

For one of my large tables, we have a primary key on 5 columns (in the order A,B,C,D and E).

Is it ok to create another non unique index with few of the pimarry columns say D,E,C?

Will this help speed up the retrival of rows when searched on columns D,E and C?
Yes
Quote:
Originally Posted by jvijay View Post
is this index redundant and overhead?
No
Reply With Quote
Reply

Tags
index, primary key, sybase

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On