From: DB2 Docs - Cluster Indexes
Although a table can have multiple indexes, only one index can be a clustering index. If you do not define a clustering index for a table, DB2 recognizes the first index that is created in the table as an implicit clustering index when ordering data rows.
No, by default the primary key is NOT a clustered table index.
The first index created, whether unique or not, is an “implicit” clustering index, and DB2 tries to insert records as close as possible to the order of values of that index.
If you later create another index and define it as clustering, then DB2 identifies it as a clustering index, but does not reorder the data that is already in the table. This can be done using the REORG utility.
ypercubeᵀᴹ
source share