Is that Having Unindexed foreign keys can be a performance issue.
The fact that a table lock will result
*if you update the parent records primary key (very very unusual)
Or
*if you delete the parent record and the child's foreign key is not indexed.
Scenario: First session child table insertion without commit and on another session updating the parent table with primary column will cause performance Issue.
Sol1: Creating Index for the referential columns
Or
Sol2: Avoiding to update or delete Primary Columns
Which One is best Solution... ? or Any other Solution ?
Thanks & Regards,
Navin Kumar G