Let me analyze something about partition:
Partitioning: Very large tables & indexes by letting you decompose them into smaller more manageable pieces called Partition.
Partition very useful for many different type of application particularly to handle very large volume data & OLTP environment.
Advantages:
- Partition enables data management operation such as data loads, index creation, and rebuilding & Backup/recovery at the partition level rather then entire table.
- Partition improves query performance.
- Partition increases the availability of mission critical database.
Method of Partition:
- Range Partition.
- List Partition.
- Hash Partition.
- Composite Partition.
What is Rage Partition?
Range partition maps data to the partition based on ranges of partition key values that you establish based on partition. It’s most common type of we are using DATE column.
Ex:
….
…
..
PARTITION by RANGE (hiredate)
(
Partition jan2000 values less then (TO_DATE('02/01/2000','MM/DD/YYYY')),
Partition feb2000 values less then (TO_DATE('03/01/2000','MM/DD/YYYY')),
)
What is List Partition?
List partition enable explicitly control how rows map to the partition.
Example:
…
…
..
Partition by LIST (sales)
(
Partition sales_in values (‘
Partition sales_us values (‘
)
What is Hash Partition?
Hash partition enable easy partition of data that does not lend itself LIST & RANGE partition.
Composite Partition:
Composite partitioning partitions data using the range method, and within each partition, sub partitions it using the hash or list method
When To Partition Table:
Here are some pre-request to implement partition table.
- Table size should be more than 2 Gb.
- Tables contain Historical data’s, in which new data’s added in new partition.
No comments:
Post a Comment