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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

• Partitioned: Select if you want to partition the index. Then the options in the Index Partitions Editor accessible<br />

from the Partitions tab become available. For more information, see Partitioning a Table Index.<br />

• Using Claus: (USING) Specifies what kind of index space is created for the index and who manages the index. If<br />

you do not specify a USING claus, DB2 manages the index space on volumes listed in the default storage group<br />

of the table’s database, which must exist. DB2 uses the defaults values PRIQTY, SECQTY, and Erase Data.<br />

• VCAT: (VCAT) If selected, allocates space for the index on a data set managed using the virtual catalog (VCAT)<br />

whose name is specified next to this option, and the user manages the data sets required for the index. The<br />

VCAT method is usually used for defining system catalogs. It requires that the VSAM dataset be pre-defined<br />

before the index space is created.<br />

• STOGROUP: (STOGROUP) If selected, stores the index on a data set managed by DB2 in the named storage<br />

group. Stogroup defined index spaces let DB2 do all the VSAM allocation work for you. If you have created a<br />

Stogroup for the data model, using the Stogroup Editor (see Creating and Editing StoGroups), you can select that<br />

Stogroup from the list. If you select Stogroup, you can also define values for PRIQTY and SECQTY. To prevent<br />

wasted space for non-partitioned indexes, you should not define PRIQTY and SECQTY; instead let DB2 manage<br />

the amount of primary and secondary space allocated for the index.<br />

• PRIQTY:(PRIQTY) Specifies the minimum number of disk space in kilobytes to initially allocate for the index.<br />

The primary allocation should be large enough to handle the storage needs that you anticipate.<br />

• SECQTY: (SECQTY) Specifies the amount of disk space in kilobytes to allocate to the index when it reaches<br />

the size of the primary allocation. If the secondary allocation space is too small, the data set might have to be<br />

extended more times to satisfy those activities that need a large space. The default value of -1 indicates that<br />

DB2 should determine the size of the secondary allocation, which is usually 10% of the primary allocation.<br />

• Erase Data: (<strong>ER</strong>ASE) If selected, specifies to erase the index data set when the index is deleted.<br />

• None: If selected, no USING claus is included in the CREATE INDEX statement.<br />

• Buffer Pool: (BUFF<strong>ER</strong>POOL) Identifies the buffer pool to be used for the index. The buffer pool used determines<br />

how the data blocks are cached in memory, in order to facilitate faster data access. BP0 is the default buffer pool<br />

for sorting.<br />

• Percent Free: (PCTFREE) Specifies the maximum percentage of space in each data block to reserve for future<br />

updates. This reserved space helps to avoid row migration and chaining caused by an update operation that<br />

extends a data row's length. Tables that won’t be updated should have this value set to 0.<br />

• Free Page: (FREEPAGE) Specifies how often to leave a page of free space when index entries are created. One<br />

free page is left for every number of pages specified here in the range of 0 to 255.<br />

• Piece Size: (PIECESIZE) Specifies the maximum addressable space of each data set for a secondary index.<br />

Specify the size followed by K (kilobyte), M (Megabyte), of G (Gigabyte). If you do not specify the unit of measure,<br />

kilobytes is assumed. Sizes specified in gigabytes are converted to megabytes in the DDL.<br />

• GBP Cache: (GPBCACHE) In a data sharing environment, specifies what index pages are written to the group<br />

buffer pool. This option is ignored in a non-data-sharing environment unless the index is on a declared temporary<br />

table. Specify Changed to write updated pages to the group buffer pool, All to cache all pages to the group buffer<br />

pool as they are read in from DASD or None to indicate that the buffer pool is only to be used for<br />

cross-invalidation.<br />

Informix Index Options<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.<br />

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

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

Saved successfully!

Ooh no, something went wrong!