You create an index to optimize performance when searching
the table using the Find function and to establish
uniqueness of table columns.
About this task
Indexes can be defined only for persistent tables.
Procedure
- From the List tab, select the object
to which you want to add an index, and click the Indexes tab.
- In the Indexes table, click New Row.
- In the Index field, specify a value.
- Optional: To make each column in the index
unique, select the Enforce Uniqueness check
box.
- For IBM® DB2® and SQL Server: Select the Clustered
Index check box to create a clustered index.
You
can have only one clustered index per table.
- Specify a storage partition or accept the default value.
- In the Columns table, click New Row to
add a column to the index.
- In the Column field, specify
an attribute from the selected object.
- Optional: In the Sequence field,
specify the sequence for the column.
If you do not specify
a value, then the order in which you add columns determines their
sequence.
- Optional: Select the Ascending check
box to have the index searched in ascending order.
If this
field is cleared, the index is searched in descending order.
- Click Save Object.
The
index status will display Add until you configure the database.
What to do next
You must configure the database for your changes to take
effect.