SQL - Alternatives to a generic datamodel

你。 提交于 2019-12-12 02:00:02

问题


while studying, im struggling to find an answer to this question:

What is a generic datamodel?

Are there any alternatives to a generic datamodel, if so; which one would you recommend?

I've looked everywhere to find a decent answer, but i didn't find it. It might be just a very simple question, i just couldn't find these terms; 'generic datamodel'.


回答1:


Perhaps by generic data model you mean an entity attribute value model: EAV on wikipedia

This data model has one table and three columns. It is usually burnt by fire if ever discovered by someone of a database (vs developer) persuasion.

The thing with a data model is that you are modeling something. You are applying your skills to build a database that is optimised to store and retrieve data about something (widgets in a factory, trades on a stock exchange, Facebook posts). A EAV can store all of this stuff but it causes many other problems down the line.

More info here: EAV




回答2:


It could be possible its an EAV mode. But that leaves me with the following question: are there any alternatives to this model?

Thanks.




回答3:


@ nick, this is the question:

  1. Advise in Chapter 5 of the people involved in your case about the application or not of a generic data model and optionally other alternatives. Motivate your opinion (10 points).


来源:https://stackoverflow.com/questions/27893539/sql-alternatives-to-a-generic-datamodel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!