Preventing concurrent overbooking

A shuttle has 12 seats and 11 committed reservations. Capacity is fixed, and there are no cancellations during the following events. Each reservation transaction counts existing reservations and inserts a new reservation only if that count is below capacity. The check and insertion are already inside one atomic transaction.


Under the current isolation setting, two overlapping transactions both find one available seat and commit separate reservations. Reservation identifiers are unique. Which change directly addresses this concurrency problem?


Two overlapping reservation transactions each read one available seat before inserting separate reservations.


Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Database Management Systems Questions: