Recommended use

Use an HG index when:

Use multicolumn HG indexes to enhance the performance of ORDER BY queries with reference to multiple columns. This change is transparent to users, but improves query performance. For an example, see “Enhancing ORDER BY query performance,” in Chapter 3, “Optimizing Queries and Deletions,” in the Performance and Tuning Guide.

NoteForeign key columns require their own, individual HG index. However, if a join index exists, the same column cannot have both an explicitly created HG index and a foreign key constraint.