DSNIRELS

DSNIRELS is part of the Data Manager component of Db2 and is involved in delete processing for tables defined with referential integrity constraints.

Hints

This module appears with the deletion of a row from a table which has been defined as the parent in a relationship where the foreign key constraint is CASCADE DELETE or SET NULL.

Referential constraints can negatively impact performance since update operations on a primary or a foreign key value may require references or updates to many rows in many tables.

Foreign keys should be indexed to prevent the use of tablespace scans to enforce referential constraints. The leading columns of the index should match the columns of the foreign key.

Consider placing tables bound by relational constraints in the same tablespace when foreign keys have been indexed. However, when foreign keys are unindexed, place the tables in separate tablespaces to prevent unnecessary scanning.

Dependent tables which may be subject to mass deletes as the result of a CASCADE DELETE should be placed on SEGMENTED TABLESPACES.

Reference Sources

IBM Db2 for OS/390, Messages and Codes, GC26-8979

IBM Db2 for OS/390, Application Programming and SQL Guide, SC26-8958

IBM Db2 for OS/390, Administration Guide, SC26-8957