简体   繁体   中英

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:

  1. Datawarehouse - where the data is stored
  2. Datawarehouse_Stage - where the ETL is done

I'm expecting both databases to be able 30GB and grow about 5GB per year. They probably will not get bigger than 80GB (when we'll start to archive).

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? 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.

...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.

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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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