I know what a key is, I know what opaque is in other contexts - but what is an opaque key in a database context?
It means it has no real meaning beyond being used to look up records - it should just be treated as arbitrary data, for no purpose other than keying. This almost always applies to GUIDs, for example. Compare this with situations where the primary key might be a social security number.
These are also known as surrogate (opaque) vs natural keys.
Something like a GUID that doesn't tell you anything about unrelated rows or external information, as opposed to things like serial PKs and user-significant information like email addresses that tell you something beyond 'this is a key'.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With