Bird
0
0

Why might a DELETE trigger cause performance issues in a high-traffic database?

hard📝 Conceptual Q10 of 15
SQL - Triggers
Why might a DELETE trigger cause performance issues in a high-traffic database?
ABecause triggers prevent indexes from being used
BBecause DELETE triggers run asynchronously and delay commits
CBecause it runs for every deleted row, adding overhead to each delete operation
DBecause DELETE triggers lock the entire database
Step-by-Step Solution
Solution:
  1. Step 1: Understand trigger execution frequency

    DELETE triggers execute for each deleted row, adding processing time.
  2. Step 2: Impact on performance

    High volume deletes cause many trigger executions, increasing overhead.
  3. Final Answer:

    Because it runs for every deleted row, adding overhead to each delete operation -> Option C
  4. Quick Check:

    Per-row triggers add overhead, affecting performance [OK]
Quick Trick: Per-row DELETE triggers add overhead on each deletion [OK]
Common Mistakes:
  • Thinking triggers run asynchronously
  • Assuming triggers disable indexes
  • Believing triggers lock entire database

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes