Entity Attribute Value Database vs. strict Relational Model Ecommerce

前端 未结 10 1351
谎友^
谎友^ 2020-11-22 05:23

It is safe to say that the EAV/CR database model is bad. That said,

Question: What database model, technique, or pattern should be used to deal with \"clas

10条回答
  •  孤独总比滥情好
    2020-11-22 06:00

    EAV has many drawbacks:

    1. Performance degradation over time Once the amount of data in the application grows beyond a certain size, the retrieval and manipulation of that data is likely to become less and less efficient.
    2. The SQL queries are very complex and difficult to write.
    3. Data Integrity problems. You can't define foreign keys for all the fields needed.
    4. You have to define and maintain your own metadata.

提交回复
热议问题