How do you determine how far to normalize a database?

前端 未结 13 2172
醉梦人生
醉梦人生 2020-11-29 06:36

When creating a database structure, what are good guidelines to follow or good ways to determine how far a database should be normalized? Should you create an un-normalized

13条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-29 07:24

    @GrizzlyGuru A wise man once told me "normalize till it hurts, denormalize till it works".

    It hasn't failed me yet :)

    I disagree about starting with it in un-normalized form however, in my experience its' been easier to adapt your application to deal with a less normalized database than a more-normalized one. It could also lead to situations where its' working "well enough" so you never get around to normalizing it (until its' too late!)

提交回复
热议问题