What is optimistic locking and how is it typically implemented in SQL?

SQL Fundamentals Hard

SQL Fundamentals — Hard

What is optimistic locking and how is it typically implemented in SQL?

Key points

  • Optimistic locking reads without locks
  • It checks a version column at update time
  • It assumes conflicts are rare
  • It rolls back if concurrent modification is detected

Ready to go further?

Related questions