Sybase Technical Library - Product Manuals Home
[Search Forms] [Previous Section with Hits] [Next Section with Hits] [Clear Search] Expand Search

Chapter 9 How Indexes Work [Table of Contents] Chapter 11 Using Locking Commands

Performance and Tuning Guide Volumes 1 - 3 (Online Only)

[-] Chapter 10 Locking in Adaptive Server

Chapter 10

Locking in Adaptive Server

This chapter discusses basic locking concepts and the locking schemes and types of locks used for databases in Adaptive Server.

The following chapters provide more information on locking:

How locking affects performance
Overview of locking
[-] Granularity of locks and locking schemes
Allpages locking
Datapages locking
Datarows locking
[-] Types of locks in Adaptive Server
Page and row locks
Table locks
[+] Demand locks
Range locking for serializable reads
Latches
Lock compatibility and lock sufficiency
[-] How isolation levels affect locking
Isolation Level 0, read uncommitted
Isolation Level 1, read committed
Isolation Level 2, repeatable read
Isolation Level 3, serializable reads
Adaptive Server default isolation level
[-] Lock types and duration during query processing
Lock types during create index commands
Locking for select queries at isolation Level 1
[+] Table scans and isolation Levels 2 and 3
When update locks are not required
[+] Locking during or processing
Skipping uncommitted inserts during selects
[-] Pseudo column-level locking
Select queries that do not reference the updated column
Using alternative predicates to skip nonqualifying rows
Qualifying old and new values for uncommitted updates
Suggestions to reduce contention


Chapter 9 How Indexes Work [Table of Contents] How locking affects performance