-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add List<Metadata> to Organization model #12
Comments
When I wrote the models, I did not include the foreign key attributes as they were inherently defined in a denormalized environment. For example, the metadata collection should have a resource_id attribute. However, should I include them just to match the HSDS schema reference and enable two-way references? |
Not necessarily for all attributes. Having a |
I see, that does make sense since this database is mostly OLAP. But should I just include the resource_id attribute just so the data is there? |
Description
There is a one-to-many relationship between
Organization
andMetadata
. We have two approaches to model this relationship.Linked (Denormalized) Data
In essence, all the metadata objects are stored inside the metadata attribute of the Organization object. This is mainly used when we are trying to model one-to-one (not the case) relationships or one-to-few (I think this is the case).
Linked (Normalized) Data
Organizations
collectionMetadata
collectionAt least for the metadata attribute I would suggest going with
Linked Denormalized
relationships.The text was updated successfully, but these errors were encountered: