Design Pattern for Custom Fields in Relational Database

前端 未结 4 630
礼貌的吻别
礼貌的吻别 2020-12-08 17:16

I have assigned a task to create (relatively) simple reporting system. In these system, user will be shown a table result of report. A table has some fields and each field g

4条回答
  •  一个人的身影
    2020-12-08 17:54

    Use MariaDB, with it's Dynamic Columns. Effectively, that lets you put all the miscellany columns into a single column, yet still give you efficient access to them.

    I would keep a few of the common fields in their own columns.

    More discussion of EAV and suggestions (and how to do it without Dynamic Columns).

提交回复
热议问题