What is the difference between locking and multi-versioning?
Answer / Javed Akhter
In SQL Server, locking and multi-versioning are two different strategies for managing concurrency and preventing conflicts when multiple users access the same data simultaneously. Locking is a mechanism that prevents multiple transactions from modifying the same data at the same time by placing locks on the resources being accessed. Multi-versioning allows multiple versions of the same data to exist, each associated with a specific transaction. This way, readers can access data without holding locks and writers can modify data without blocking readers. The main difference is that locking can lead to contention, especially in high concurrency environments, while multi-versioning aims to reduce this contention.
| Is This Answer Correct ? | 0 Yes | 0 No |
How do I find sql server instance name?
What do you mean by stored techniques? How would we use it?
How do you find value of first column before inserting value into the second column in the same table for checking that second column must have different value than first column.
How to list all tables in the database using odbc_tables()?
How do I start sql server agent automatically?
What are the five characteristics of good data?
Tell me about Triggers?
What is an extended stored procedure? Can you instantiate a COM object by using T-SQL?
How can you find out how many rows returned in a cursor?
What is the contrast between sql and pl/sql?
How to modify the underlying query of an existing view?
What is rank function?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)