Professional Documents
Culture Documents
Creación de Indices para Itemtypes IBMCM
Creación de Indices para Itemtypes IBMCM
The Library Server and the Resource Manager databases are installed with the appropriate indexes to optimize create, retrieve, update, and delete operations. When you define a new item type, the appropriate indexes are created automatically. Indexes on user-defined item attributes are not generated automatically. For the attributes that are frequently used for regular searches, creating indexes on these attributes often improves response time and reduces resource usage for queries using these attributes. Indexes can negatively affect response times for create, update, and delete operations for that item type as well as increase the database size and buffer pool usage. You should monitor overall system performance and response time before and after adding an index to evaluate its overall value. A part of this process should be running your SQL through the DB2 Explain function to verify that the new indexes are being used.
2.
3.
(This index is unique, even if myattr1 and myattr2 are not.) 4. If you want the myattr1 and myattr2 combination to be unique within myitemtype, create this index as well:
db2 create unique index mynewindex2 on icmut0<CCCC>001 ( ATTR000000<AAAA> asc, ATTR000000<BBBB> asc)
After creating a new index, either manually or through the DB2 Control Center, run the runstats and rebind commands to make sure that the DB2 UDB optimizer can effectively use the new index.