Hitachi

Hitachi Advanced Database Setup and Operation Guide


5.5.1 Points to consider when defining a range index

Organization of this subsection

(1) Cases that benefit from a range index

In a search that uses a range index, the data to be searched is narrowed based on ranges of values of the data in the column on which the range index has been defined. Therefore, define a range index in the following cases:

(2) Cases that benefit when a range index is not defined

In the following cases, the range of each segment expands, with the result that defining a range index does not provide the benefit of segment skipping.

When rows are deleted, although the ranges of the values in the segments do not expand, the range of the range index itself becomes greater compared with the ranges of the data stored in the segments. In such a case, the benefits of using a range index will not be realized.

In the following case, the ranges of individual chunks overlap with each other, with the result that defining a range index does not provide the benefit of chunk skipping.

Do not define a range index for any column that you do not expect to benefit from segment skipping or chunk skipping. Doing so reduces search performance.

(3) Columns for which a range index cannot be defined

You cannot define a range index based on the following types of columns: