Critique my MySQL Database Design for Unlimited DYNAMIC Fields

后端 未结 4 1480
再見小時候
再見小時候 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 18:03

    I agree with john owen.

    dynamically creating a query from the schema is a small price to pay compared to querying EVA tables. Especially if the tables are large.

    Usually table columns are considered an "interface". A design that relies on a dynamically changing interface is usually bad, but EAV data is a special case where you don't have many options. You have to choose between slow unintuitive queries or dynamic schema.

提交回复
热议问题