Is this a “correct” database design?

后端 未结 5 632
时光说笑
时光说笑 2021-01-12 03:04

I\'m working with the new version of a third party application. In this version, the database structure is changed, they say \"to improve performance\".

The old vers

5条回答
  •  孤街浪徒
    2021-01-12 03:45


    From what I know of databases (but I'm certainly not the most experienced), it seems quite a bad idea to do that in your database. If you already know how many max custom properties a user might have, I'd say you'd better set the table number of columns to that value.

    Then again, I'm not an expert, but making new columns on the fly isn't the kind of operations databases like. It's gonna bring you more trouble than anything.

    If I were you, I'd either fix the number of custom properties, or stick with the old system.

提交回复
热议问题