Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.


Database indexes are applied to Tables to improve the performance of data retrieval and sort operations. Multiple indexes can be defined against a Table; however, each index imposes overheads (in the form of processing time and storage) on the database server to maintain them as information is added to and deleted from the Table

In Enterprise Architect an index is modeled as a stereotyped operation.

Some DBMSs support special types of indexes, Enterprise Architect defines these using additional properties such as function-based, clustered and fill-factor.

Access Tools | Database Builder | Click on Table > Constraints     or

On diagram or Project Browser | Right-click on Table | Features & Properties | Operations > Constraints     or

Click on Table: F10

Work on an index



See also


On the 'Constraints' tab for the Table, right-click and select 'Add new constraint'.

The new constraint is added with the default name 'constraint1' and the Type of 'index'.

Overtype the name with your preferred index name.


Assign the appropriate columns to the Index.

The 'Assigned Columns' list has an additional 'Order' field that specifies the order (Ascending or Descending) in which each assigned column is stored in the index. You can toggle the order for each column, as required.

Additionally, for MySQL indexes, a 'Len' field will be visible in which you can define Partial Indexes; that is, an index that uses the leading 'n' number of characters of a text based field. The 'Len' field takes only whole number numeric values of between 0 and the column's defined length. A value of 0 (which is the default) indicates that the entire column is to be indexed.

Database Table Constraints


In the 'Property' panel, review the settings of the extended properties that are defined for the current DBMS.

Additional Properties



See also

Is Unique

(True/ False) indicates that a Unique index cannot contain more than one instance of a combination of values across a set of columns.

Is Clustered

(True/ False) Indicates the physical order in which the data is stored.

Fill Factor

A numeric value between 0 and 100, that defines the percentage of available space that should be used for data.


A SQL statement that defines the function/statement that will be evaluated and the results indexed; for example:



Identifies a comma-separated list (CSV) of non-key Columns from the current table.

Learn more


  • The Functional-based extended property will only be visible on Tables where the DBMS supports them; that is, PostgreSQL and Oracle
  • Any columns assigned to a functional-based index are ignored

Learning Center topics

  • Alt+F1 | Enterprise Architect | Database Engineering | Physical Data Model | Add Index