Prev Next

Non Clustered Primary Keys

When you create a Primary Key in some DBMSs (such as SQL Server or ASA), it is automatically created with the 'Is Clustered' property set to True. Therefore when you model a Primary Key in an Enterprise Architect data model, the same behavior occurs.

Clustered indexes provide improved performance for accessing the column(s) involved, by physically organizing the data by those columns. There can be only one clustered index per Table.

In some situations, you might be more interested in the performance of columns other than the ones assigned to the Primary Key, and therefore you would need to change the default assignment so that the Primary Key is not clustered.

Access

Ribbon

Specialize > Tools > Database Builder > Click on Table name > Constraints/Indexes

Context Menu

In diagram or Project Browser | Right-click on Table | Features & Properties | Constraints/Indexes

Keyboard Shortcuts

Click on Table: F9 > Constraints/Indexes

Define Primary Key as non-clustered

Subsequently, you can model an index for the same Table as clustered.

Step

Action

See also

1

Highlight the existing Primary Key constraint.

The Primary Key properties display in the 'Property' panel.

2

For the Is Clustered property, in the 'Value' field click on the drop-down arrow and change the value to False.

Learn more