Enterprise Edition Home | Express Edition Home | Previous Page | Next Page   Fragmentation Guidelines > Designing a Distribution Scheme >

Choosing a Distribution Scheme

Table 8 compares round-robin and expression-based distribution schemes for three important features.

Table 8. Distribution-Scheme Comparisons
Distribution
Scheme
Ease of Data Balancing Fragment Elimination Data Skip
Round-robin Automatic. Data is balanced over time. The database server cannot eliminate fragments. You cannot determine if the integrity of the transaction is compromised when you use the data-skip feature. However, you can insert into a table fragmented by round-robin.
Expression-based Requires knowledge of the data distribution. If expressions on one or two columns are used, the database server can eliminate fragments for queries that have either range or equality expressions. You can determine whether the integrity of a transaction has been compromised when you use the data-skip feature. You cannot insert rows if the appropriate fragment for those rows is down.

The distribution scheme that you choose depends on the following factors:

Basically, the round-robin scheme provides the easiest and surest way of balancing data. However, with round-robin distribution, you have no information about the fragment in which a row is located, and the database server cannot eliminate fragments.

In general, round-robin is the correct choice only when all the following conditions apply:

An expression-based scheme might be the best choice to fragment the data if any of the following conditions apply:

If you plan to add and delete large amounts of data periodically, based on the value of a column such as date, you can use that column in the distribution scheme. You can then use the alter fragment attach and alter fragment detach statements to cycle the data through the table.

The ALTER FRAGMENT ATTACH and DETACH statements provide the following advantages over bulk loads and deletes:

For more information, see Improving the Performance of Attaching and Detaching Fragments.

In some cases, an appropriate index scheme can circumvent the performance problems of a particular distribution scheme. For more information, see Fragmenting Indexes.

Enterprise Edition Home | Express Edition Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]