SQL Server Database Partitioning
SQL Server Database Partitioning
Partitioning
An Overview
SQL Server Database Files and Filegroups
SYSTEM DATABASES
USER DATABASES
CXPES
CxTHCS
PRIMARY MICROSERVICE
FILEGROUPS
INSTANCE 2 .mdf .ndf .ndf
CxTHTM
Transaction
Log
.ndf
.ndf
INSTANCE 3 .ldf .ndf AUTH5
INSTANCES SECONDARY
Data in a
partitioned
table is
partitioned
based on a
single
column, the
partition
column
A filegroup contains one or more data files that can be spread on one or more disks. Filegroups can be set to read-only, and
filegroups can be backed up and restored individually. There are many benefits of mapping each partition to its own
filegroup. Less frequently accessed data can be placed on slower disks and more frequently accessed data can be placed on
faster disks. Historical, unchanging data can be set to read-only and then be excluded from regular backups. If data needs
to be restored it is possible to restore the partitions with the most critical data first.