SQL-通用数据模型的替代 [英] SQL - Alternatives to a generic datamodel

查看:83
本文介绍了SQL-通用数据模型的替代的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在学习期间,我一直在努力寻找以下问题的答案:

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

什么是通用数据模型?

是否有通用数据模型的替代方案?您会推荐哪一个?

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'.

推荐答案

也许通过通用数据模型,您指的是实体属性值模型:维基百科上的EAV

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.

使用数据模型的事情是您正在建模某物。您正在运用自己的技能来构建数据库,该数据库经过优化可存储和检索有关某物(工厂中的小部件,在证券交易所进行交易,Facebook帖子)的数据。一个EAV可以存储所有这些东西,但会导致很多其他问题。

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.

此处提供更多信息: EAV

这篇关于SQL-通用数据模型的替代的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆