BookmarkSubscribeRSS Feed
jplarios
Quartz | Level 8
Hi:
question:
I know that indexes are automatically built when creating , say, a FK to PK relation. And it is clear that indexes allow for the enforcement of rules when incoming rows are getting updated or coming in. My question is if having a FK to PK relation will increase performance when querying versus having plain indexes in both tables without IC. If there is a performance increase that the table with the FK does not need to consult its index but uses the PK index? Is there any performance boost when having IC as opposed to simple indexes?
Thanks
jp
2 REPLIES 2
Vince_SAS
Rhodochrosite | Level 12
This forum is restricted to discussion of SAS Stored Processes.

http://support.sas.com/documentation/cdl/en/stpug/61271/HTML/default/a003152554.htm

You might want to search support.sas.com for an answer to your question. Here is one page you might find helpful:

http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000403555.htm

Vince DelGobbo
SAS R&D
LinusH
Tourmaline | Level 20
The main application for IC is updating tables, not querying.
I have seen no examples nor documentation that indicates that the SQL/WHERE-planner takes IC into account.
So my qualified guess is no, there is probably be no difference.
/Linus
Data never sleeps

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1060 views
  • 0 likes
  • 3 in conversation