What are design patterns to support custom fields in an application?

后端 未结 7 1194
天命终不由人
天命终不由人 2020-11-30 16:37

We develop a commercial application. Our customers are asking for custom fields support. For instance, they want to add a field to the Customer form.

What are the kn

7条回答
  •  一个人的身影
    2020-11-30 17:12

    if those 'extra' fields are incidental and don't care to do searches on them, I usually go for option 2 (but like JSON better than XML). If there's going to be searches on custom fields, option 3 isn't hard to do, and usually the SQL optimizer can get reasonable performance out of it.

提交回复
热议问题