[Previous] [Contents] [Next]


Other locking paradigms

The row-locking paradigm is used in the InnoDB and Gemini table types, and is the dominant paradigm in other DBMSs. The BDB table type offers page locking, which is similar to locking selected rows.

Row or page locking works well in situations that are infrequently seen in web database applications, such as:

  • Transaction environments where a number of steps need to be undone or rolled back.

  • Many users are writing to the same tables concurrently.

  • Locks need to be maintained for long periods of time.

The drawbacks of row and page locking include:

  • Higher memory requirements to manage an increased number of locks

  • Poor performance, since there is much more locking and unlocking activity

  • Slow locking for operations that require locks on a whole table, such as GROUP BY operations


[Previous] [Contents] [Next]