Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Avoid Or Keep Synthetic Key(s)

I'm working on a data-model that is having Synthetic Keys:

DReader:

ReadID,

ContactID,

Other Fields

CReader:
ReadID,

ContactID,

Other Fields

Pub:

ReadID,

Other Fields

Contact:

ContactID,

Other Fields

Should I keep the Synthetic Keys or is there a better way to approach this?

2 Replies
vivientexier
Partner - Creator II
Partner - Creator II

It is better to avoid synthetic keys. If you let QlikView create this kind of key it will take more time to reload your application. You can test if you have a large amount of data you will notice a significant difference.

Moreover, data model is hard to read if you have to many synthetic keys.

Miguel_Angel_Baeyens

Hi,

Synthetic keys are not bad by themselves, meaning when done or left on purpose, which in my experience is very unsual. As QlikView links tables when one or more fields have the same name, it can lead to mistake or do worng associations between tables if fields are not properly renamed (e.g.: Id in invoice and Id in customer, same name, different meaning).

I'd rather do the composite (synthetic) keys by myself, and adding some autonumber() function so they use less memory and less space into disk, when stored.

Hope that makes sense,

Miguel