Answer the question
In order to leave comments, you need to log in
Why is EAV solution bad for an online store?
I ran into a problem when there are different types of goods (clothes and TVs have few of the same parameters). I see 3 solutions to the problem
Answer the question
In order to leave comments, you need to log in
Most of the shortcomings indicated on stackoverflow are corrected by well-built business logic. This can be seen on the example of the same Magento.
The only thing worth noting is that when switching to EAV, you need to evaluate whether the game is worth the candle.
If the structure of categories and/or product types is relatively constant and rarely changes, then it makes sense to use flat tables (what you have indicated in the third option), because such a scheme is much more productive and easier to implement.
If the directory structure is very dynamic, then you should use EAV, because in this case, resources that are spent on alter / drop queries in flat tables will be saved. But at the same time, it will be necessary to think over the caching system well, because. the specific complexity of data sampling for one entity is significantly greater than in other schemes.
I myself chose EAV for myself a very long time ago and have never regretted it.
The simplest solution is to use document-oriented databases like MongoDB/CouchDB.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question