Remove locking-sql-server
article thumbnail

How It Works: SQL Server Lock Partitioning

SQL Server According to Bob

Quick Refresher Over Partitioned Protection/Locking. The lock manager (LockMgr) is designed to track partitioned and non-partitioned locks. A handful of lock types (Database, Metadata, LOGIN_STATS, …) are eligible for lock partitioning.

Servers 103
article thumbnail

How It Works: SQL Server Locking WAIT_WITH_LOW_PRIORITY

SQL Server According to Bob

Question: “ The way I have understood lock partitioning and a regular index rebuild to interact, is that the final SCH-M lock for the object is taken by acquiring it across all of the lock partitions, in ascending order to avoid any deadlock conditions.

Servers 40
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

How It Works: SQL Server Lock Iteration / Enumeration

SQL Server According to Bob

When executing a query to enumerate the locks, such as select * from sys.dm_tran_locks, how does SQL Server scan the locks and avoid impacting the overall concurrency? I recently posted on aspects of the SQL Server Lock Manager and found the iteration of the locks interesting as I was stepping in the code.

Servers 40
article thumbnail

Master MySQL Point in Time Recovery

Scalegrid

This article delivers a practical roadmap for using backups and binary logs to achieve accurate MySQL recovery, detailed steps for setting up your server, and tips for managing recovery and backups effectively without overwhelming you with complexity. Insert the ‘log-bin’ directive into your server’s configuration file (my.cnf or my.ini).

Database 162
article thumbnail

Use Physical Backups With MySQL InnoDB Redo Log Archiving

Percona

This issue most often occurs when there is significant MySQL server activity during the backup operation, and the redo log file storage media operates faster than the backup storage media. Enabling redo log archiving on the server requires setting a value for the innodb_redo_log_archive_dirs system variable. Press ^C to stop.

C++ 107
article thumbnail

The Lock Escalation Threshold – Part 1

SQL Performance

This article isn’t about the act of lock escalation itself, which is already well documented and generally well understood. Some myths (like row locks escalating to page locks) persist, but challenging those yet again probably wouldn’t change much. resource_description ; END ; -- Transaction lock summary. LockTest AS LT.

article thumbnail

The Lock Escalation Threshold – Part 3

SQL Performance

Lock Lifetimes. The examples so far in this series have all used repeatable read isolation to acquire shared locks on qualifying rows and hold them to the end of the transaction. Locking optimizations. When locking at row granularity, the engine can skip row locks entirely when it’s safe to do. Lock classes.

Testing 91