Forum Discussion
Compound key
- 9 years ago
Hi brunozanoelo ,
Compound keys are less essential in an Analytics/Reporting environment, but yes if you concatenate the values you can create relationships between tables.
Hi brunozanoelo ,
Compound keys are less essential in an Analytics/Reporting environment, but yes if you concatenate the values you can create relationships between tables.
- brunozanoelo9 years agoPost Patron
Hi Phil_Seamark! Thanks a lot!
Have a great day! - Anonymous8 years agoNot applicable
Hey Phil_Seamark,
I think you need to do some clarification here. On what regards do you claim that compound keys are less essential? Why duplicate data which degrade performance??
- MaxW8 years agoAdvocate II
Please be careful concatenating values to create compound keys, ideally convert id's to text and use a separator between them. This is a potential performance hit (text lookups are much slower than integer), but it is often necessary to avoid duplicate keys.
Consider:
Company 1 employee 12 key=112Company 11 employee 2 key=112