Previous Topic: Permitted Value Default Enforcement - Creates/UpdatesNext Topic: Properties of Indexes


Indexes

In the data structure, an index describes an arrangement of columns used as an index into a table. Indexes are used for the following purposes:

Imagine that the CUSTOMER entity type has a non-identifying attribute called Name, and that no index is defined for Name. Thus, for a procedure that lists customers in alphabetical order by Name, at execution time the DBMS would have to execute these steps:

  1. Look at all of the CUSTOMER records
  2. Sort them into Name sequence
  3. Present the list to the procedure

When an index is defined for Name, the DBMS automatically keeps track of customers in Name sequence, eliminating the need for sorting the records. CA Gen automatically creates an index for each identifier during transformation. In addition, it creates an index for foreign keys implementing relationships.

Each index is associated with exactly one record in a table and may have the properties shown in the following table.