简体   繁体   English

为数据仓库创建SQL Server数据库的最佳实践

[英]Best practice for creating SQL Server databases for a data warehouse

I'm about to create 2 new SQL Server databases for our data warehouse: 我将为我们的数据仓库创建2个新的SQL Server数据库:

  1. Datawarehouse - where the data is stored 数据仓库 -数据存储位置
  2. Datawarehouse_Stage - where the ETL is done Datawarehouse_Stage-完成ETL的位置

I'm expecting both databases to be able 30GB and grow about 5GB per year. 我期望这两个数据库都能够达到30GB,并且每年增长约5GB。 They probably will not get bigger than 80GB (when we'll start to archive). 它们可能不会超过80GB(当我们开始存档时)。

I'm trying to decide what settings I should use when creating these databases: 我试图确定在创建这些数据库时应使用哪些设置:

  • what should the initial size be? 初始大小应该是多少?
  • ...and should I increase the database size straight after creating it? ...而且创建数据库后我应该直接增加数据库的大小吗?
  • what should the auto-growth settings be? 自动增长设置应该是什么?

I'm after any best practice advice on creating those databases. 我正在寻求有关创建这些数据库的最佳实践建议。

UPDATE: the reason I suggest increasing the database size straight after creating it, because you can't shrink a database to less than its initial size. 更新:之所以建议在创建数据库后立即增加数据库大小,是因为您不能将数据库缩小到小于其初始大小。

•what should the initial size be? •初始大小应该是多少?

45gb? 45GB? 30 + 3 years grow, especially given that this fits on a LOW END CHEAP SSD DISC ;) Sizing is not an issue if your smallest SSD is 64GB. 30 + 3年的增长,特别是考虑到它可以安装在低端廉价的SSD光盘上;)如果最小的SSD是64GB,则大小调整不是问题。

...and should I increase the database size straight after creating it? ...而且创建数据库后我应该直接增加数据库的大小吗?

That would sort of be stupid, or? 那有点愚蠢,或者? I mean, why create a db with a small size jsut to resize IMMEDIEATLEY after, instead of putting the right size into the script in the first step. 我的意思是,为什么要在创建具有较小jsut大小的数据库之后调整IMMEDIEATLEY的大小,而不是在第一步中将正确的大小放入脚本中。

what should the auto-growth settings be? 自动增长设置应该是什么?

This is not a data warehouse question. 这不是数据仓库问题。 NO AUTOGROW. 没有自动增长。 Autogrow fragemnts your discs. 自动增长会破坏您的光盘。

Make sure you format the discs according to best practices (64kb node size, aligned partitions). 确保根据最佳做法(64kb节点大小,对齐的分区)格式化光盘。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM