DSNIRELD

DSNIRELD 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, SET NULL or RESTRICT.

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

Index foreign keys 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 spaces to prevent unnecessary scanning.

Place dependent tables that may be subject to mass deletes as a result of a CASCADE DELETE 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