Critique my MySQL Database Design for Unlimited DYNAMIC Fields

后端 未结 4 1479
再見小時候
再見小時候 2021-02-06 17:27

Looking for a scalable, flexible and fast database design for \'Build your own form\' style website - e.g Wufoo.

Rules:

  1. User has only 1 Form they can build
4条回答
  •  误落风尘
    2021-02-06 17:57

    y'know, create table, alter, add a column, etc are operations you can do at run time in many modern rdbms implementations. Why be EAVil? Especially if you are using dynamic sql.

    It's not for the fainthearted. I recall an implementation at Boeing which resulted in 70,000 tables in a database.

    Obviously there are pitfalls in dynamic table creation, but they also exist for EAV tables. Things like two attributes for the same key expressing the same fact. Or transitive dependencies and other normalization gotchas. So why not at least leverage the power of the RDBMS on your behalf?

提交回复
热议问题