Planning a fragmentation strategy
You can decide on a fragmentation goal for your database and devise a strategy to meet that goal.
About this task
A fragmentation strategy consists of two parts:
- A distribution scheme that specifies how to group rows into fragments
You specify the distribution scheme in the FRAGMENT BY clause of the CREATE TABLE, CREATE INDEX, or ALTER FRAGMENT statements.
- The set of dbspaces in which you locate the fragments
You specify the set of dbspaces or in the IN clause (storage option) of these SQL statements.
Procedure
To formulate a fragmentation strategy:
Results
When you plan a fragmentation strategy, be aware of these
space and page issues:
- Although a 4-terabyte chunk can be on a 2-kilobyte page, only 32 gigabytes can be utilized in a dbspace because of a rowid format limitation.
- For a fragmented table, all fragments must use the same page size.
- For a fragmented index, all fragments must use the same page size.
- A table can be in one dbspace and the index for that table can be in another dbspace. These dbspaces do not need to have the same page size.