Table Optimizations
Table Optimizations
Table Optimizations
Objectives
Partitioning Concepts
Implementing Partitioning
Sliding Windows
Table Compression
Memory-Optimized Tables
What is Table Partitioning
Partitioning is a performance optimization
for large tables and indexes that splits the
object horizontally into smaller units.
Only the required partitions to be read, as
opposed to the entire table.
Each partition can be stored on a separate
filegroup.
Table Partitioning
Partitioning Concepts
Partitioning key used to determine in which
partition each row of the table should be placed.
If table has a clustered index, then the
partitioning key must be a subset of the clustered
index key.
All other UNIQUE indexes on the table,
including the primary key, also need to include
the partitioning key.
Partitioning Key can be a computed column
The column you select should also be a column
that queries will use as a filter criterion.
Partition Function
Boundary points to set the upper and lower
limits of each partition.