What is the main difference between Row Modelling and EAV (Entity-Atribute-Value)?
I think EAV is a subset of Row Modelling but I cant state the main differences.
If possible, please use references in your answers.
What is the main difference between Row Modelling and EAV (Entity-Atribute-Value)? I think EAV
Share
Good question.
According to the Wikipedia article,
So here’s my take on that:
row modelling
this has some type safety:
pricecan’t be some junk stringthe only things that we put in this table are line items
to me, this sounds just like a normal 1:many relationship (but I’m not sure so don’t quote me on that)
entity-attribute-value
the values are stored as
varchars — but they could be numbers, strings, times, etc.all kinds of data can be stored — shoe size, airplane weight, the number of home runs Babe Ruth hit in 1926
The article goes on to say:
So if you have a lot of these 1:many relationships, do you want to have 1 table for each, as row modelling requires? Whereas EAV would allow you to combine (some or all of) those tables into 1.