January 2018
Intermediate to advanced
446 pages
12h 57m
English
Partitioning by HASH is used primarily to ensure an even distribution of data among a predetermined number of partitions. With range or list partitioning, you must specify explicitly which partition a given column value or set of column values should be stored in; with hash partitioning, this decision is taken care of for you, and you need only specify a column value or expression based on a column value to be hashed and the number of partitions into which the partitioned table is to be divided.
If you want to evenly distribute employees, instead of RANGE partitioning over YEAR(hire_date), you can use HASH of YEAR(hire_date) and specify the number of partitions. When PARTITION BY HASH is used, the storage ...
Read now
Unlock full access