Tag

Row Lock

0 views collected around this technical thread.

Aikesheng Open Source Community
Aikesheng Open Source Community
Aug 14, 2024 · Databases

Granting Table Locks and Row Locks in InnoDB

This article explains how InnoDB in MySQL 8.0.32 grants table and row locks, detailing the active versus passive acquisition, the lock‑granting algorithms for tables and rows, and the priority, weight, and FIFO rules that determine lock ordering and deadlock handling.

Database ConcurrencyInnoDBMySQL
0 likes · 11 min read
Granting Table Locks and Row Locks in InnoDB
Aikesheng Open Source Community
Aikesheng Open Source Community
Jun 19, 2024 · Databases

Understanding InnoDB Row Locking: Fast and Slow Locking Mechanisms

This article explains how InnoDB implements row locking by dividing the process into fast and slow paths, describing the hash‑based lock table, token acquisition, lock‑structure creation, bitmap handling, and the conditions that trigger slow‑lock logic.

Database InternalsInnoDBMySQL
0 likes · 13 min read
Understanding InnoDB Row Locking: Fast and Slow Locking Mechanisms
Architect's Tech Stack
Architect's Tech Stack
May 17, 2024 · Databases

Understanding MySQL SELECT ... FOR UPDATE Locking: Row vs. Table Locks

This article explains how MySQL's SELECT ... FOR UPDATE statement acquires either row-level or table-level locks depending on the presence of indexes or primary keys, and demonstrates the behavior with multiple transaction examples and a sample table definition.

IndexesMySQLRow Lock
0 likes · 4 min read
Understanding MySQL SELECT ... FOR UPDATE Locking: Row vs. Table Locks
Selected Java Interview Questions
Selected Java Interview Questions
Oct 30, 2023 · Databases

Understanding SELECT ... FOR UPDATE Locks in MySQL

This article explains how MySQL's SELECT ... FOR UPDATE statement applies different lock types—row, table, or none—depending on whether the WHERE clause uses primary keys, unique indexes, regular indexes, range queries, non‑indexed fields, or returns no rows, illustrated with practical transaction examples.

MySQLRow LockSELECT FOR UPDATE
0 likes · 9 min read
Understanding SELECT ... FOR UPDATE Locks in MySQL
Laravel Tech Community
Laravel Tech Community
Jun 22, 2022 · Databases

Understanding MySQL SELECT ... FOR UPDATE: When It Locks Rows vs. Tables

This article explains how a plain SELECT does not lock data, while SELECT … FOR UPDATE adds a pessimistic lock whose scope—row or table—depends on whether the query uses an indexed or primary‑key column, and demonstrates the behavior with SQL examples and transaction scenarios.

MySQLRow LockSELECT FOR UPDATE
0 likes · 4 min read
Understanding MySQL SELECT ... FOR UPDATE: When It Locks Rows vs. Tables
Top Architect
Top Architect
Jun 22, 2022 · Databases

Understanding SELECT ... FOR UPDATE Locking in MySQL: Row vs. Table Locks

This article explains how the SELECT ... FOR UPDATE statement in MySQL adds a pessimistic lock, describes when it results in a row lock versus a table lock based on index usage, provides verification SQL, example scenarios, and practical tips for transaction handling.

DatabaseMySQLRow Lock
0 likes · 5 min read
Understanding SELECT ... FOR UPDATE Locking in MySQL: Row vs. Table Locks
Top Architect
Top Architect
Nov 3, 2021 · Databases

Understanding SELECT ... FOR UPDATE Locking in MySQL: Row vs. Table Locks

This article explains how MySQL's SELECT ... FOR UPDATE statement adds a pessimistic lock, detailing when it results in row-level locking versus table-level locking based on the presence of indexes or primary keys, and demonstrates the behavior with multiple practical examples.

DatabaseMySQLRow Lock
0 likes · 5 min read
Understanding SELECT ... FOR UPDATE Locking in MySQL: Row vs. Table Locks
Selected Java Interview Questions
Selected Java Interview Questions
Oct 22, 2021 · Databases

Understanding SELECT ... FOR UPDATE Locking in MySQL: Row vs. Table Locks

This article explains how MySQL's SELECT ... FOR UPDATE statement adds pessimistic locks, detailing when it results in row‑level locks versus table‑level locks based on the presence of indexes or primary keys, and provides verification examples with code and transaction scenarios.

IndexMySQLRow Lock
0 likes · 4 min read
Understanding SELECT ... FOR UPDATE Locking in MySQL: Row vs. Table Locks
Selected Java Interview Questions
Selected Java Interview Questions
Mar 16, 2020 · Databases

Understanding MySQL Table Locks, Row Locks, and Gap Locks

This article explains the differences between MySQL table locks and row locks, describes how MyISAM and InnoDB handle locking, provides explicit lock syntax with examples, discusses gap locks, and offers practical recommendations for avoiding lock contention in concurrent applications.

ConcurrencyGap LockInnoDB
0 likes · 7 min read
Understanding MySQL Table Locks, Row Locks, and Gap Locks
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Sep 15, 2018 · Databases

Overview of MySQL Locks: Types, Characteristics, and Usage Scenarios

This article explains MySQL's lock mechanisms, covering table‑level, row‑level, and page locks, the differences between pessimistic and optimistic locking, shared locks, and provides guidance on when to choose table locks versus row locks in various application scenarios.

Database ConcurrencyLocksMySQL
0 likes · 7 min read
Overview of MySQL Locks: Types, Characteristics, and Usage Scenarios