24.12.2012 Views

ER/Studio - Embarcadero Technologies Product Documentation

ER/Studio - Embarcadero Technologies Product Documentation

ER/Studio - Embarcadero Technologies Product Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

USING <strong>ER</strong>/STUDIO > DEVELOPING THE PHYSICAL MODEL<br />

Edit an Index<br />

1 In the Data Model Explorer, expand the Index node of a physical data model, and then double-click the index<br />

you want to change.<br />

TIP: You can also edit an index on the Index tab of the Table Editor for the table to which the index<br />

belongs.<br />

2 Complete the Index Editor as required and then click OK.<br />

TIP: If you change the index options and can see no reflection of the change in the DDL, click<br />

Customize on the DDL tab and ensure the options required to display your changes are selected.<br />

For example, If you create a non-unique index for a MySQL table and turn on full text, you must<br />

customize the DDL by selecting Generate Defined Nonunique Indexes for the index to show up.<br />

The following describe options that require additional explanation.<br />

NOTE: The options and tabs available depend on the database platform.<br />

• Set as PK Index: Read-only. If selected, indicates that the index selected is the primary key.<br />

• Unique Constraint: Select to specify that every value in the named column must be unique. Unique constraints<br />

are similar to Primary keys. They require unique values throughout the named column or columns in the table.<br />

• Physical Only: Select to specify that the index be ignored when comparing the physical model to a logical<br />

model.<br />

For information on the various tabs available, click a link below:<br />

• Columns tab<br />

• Properties tab<br />

• Options tab<br />

• Storage tab<br />

• Partitions tab<br />

• Compare Options tab<br />

• Attachment Bindings tab<br />

Columns tab<br />

Select the columns or keys, the index should be based on. The efficiency of the index depends upon the keys<br />

chosen and their search order.<br />

Properties tab<br />

This tab is available for Oracle 8.x, 9i, 10g, and 11g.<br />

• Index Type: Select the appropriate index type; it can have a big impact on performance.<br />

• Bitmap: Select for an index that will not be frequently updated by concurrent applications, although be aware<br />

that when applied to the index of a unique column (primary key candidate) you need to consider the space<br />

required, which depends on the cardinality of the column and the data distribution. A bitmap for each key value<br />

is used instead of a list of row IDs.<br />

• B-tree: Select when indexing a primary key, because Oracle does not support primary key indexes, or select<br />

B-tree when space is a consideration. B-tree indexes are balanced to equalize access times to any row.<br />

• Unique: (UNIQUE) If selected, specifies that the index key contains no duplicate values and therefore every row<br />

in the table is in some way unique. If not selected, a non-unique index is created that lets table rows have<br />

duplicate values in the columns that define the index. For a unique index, there is one rowid per data value. If<br />

selected, Oracle will generate a separate unique index before creating the PK constraint.<br />

EMBARCAD<strong>ER</strong>O TECHNOLOGIES > <strong>ER</strong>/STUDIO® 8.0.3 US<strong>ER</strong> GUIDE 167

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!