✏️ Explanatory Question

Why should Select ForUpdate be avoided when no update is performed?

👁 15 Views
📘 Detailed Answer
🟢 Easy
💡

Answer with Explanation

BPCheckSelectForUpdateAbsent warns when select forUpdate is used but no update happens.
This:

  • Locks records unnecessarily

  • Reduces concurrency

Fix:

  • Use normal select, or

  • Enable Optimistic Concurrency Control (OCC) on the table.