学习 SQL Server 文档(二) 规范化的好处

数据库规范化:  有大量窄表(列较少的表)是规范化数据库的特征。而拥有少量宽表(列较多的表)是非规范化数据库的特征。
通常,合理的规范化将提高性能。规范化的一些益处包括:

  1. 排序和索引创建更快。
  2. 聚集索引的数目更大。
  3. 索引更窄、更精简。
  4. 每个表的索引更少,这样将提高 INSERT、UPDATE 和 DELETE 语句的性能。
  5. 空值更少,出现不一致性的机会更少,从而提高数据库紧凑性。
  6. 随着规范化的不断提高,检索数据所需的联接数和复杂性也将不断增大。太多表间的关系联接太多、太复杂可能会影响性能。合理的规范化通常很少包括经常性执行的、所用的联接涉及 4 个以上表的查询。

其实还有一些没有指出来的很明显的好处:

  1. 消除数据冗余
  2. 利于维护数据的一致性和完整性

规范化实质上是一个对客观世界不断细化从而得到更具体对象的过程,可以这么说,每个经过规范化的表,都对应着客观世界的一个事物。

By javafuns on March 26, 2008 at 22:36 · Views: 764 · Permalink · RSS
Categorized in: Database · Tagged with: 
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Reply


  • Highest Rated

  • My PicasaPhotos

    IMG_0573.JPG

    A father cries next to the recovered body of his son (R) that is laid out with other bodies at the playground of a school at the earthquake-hit Hanwang Town of Mianzhu County, May 14, 2008. China poured more troops into the earthquake-ravaged province of Sichuan on Wednesday to quicken a search for survivors as time ran out for thousands of people still buried under rubble and mud.  REUTERS/Jason Lee (CHINA)

    IMG_0538.JPG

  • RSS My del.icio.us

  • My RSS