All Questions
Database Indexing easy

Why is it strongly recommended to index Foreign Key columns manually?

  1. A To enable 'Cascade Delete' and 'Cascade Update' operations that are strictly required by the ANSI SQL:2011 standard.
  2. B It is generally unnecessary, as modern database engines automatically create and manage indexes for every defined foreign key.
  3. C To accelerate JOIN operations and prevent expensive full table locks during deletions or updates on the parent table.
  4. D To enforce the structural integrity of the foreign key constraint itself and prevent the accidental insertion of orphaned records.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions