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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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