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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 804 views
  • 0 likes
  • 3 in conversation