`

About the database locking

阅读更多

http://en.wikipedia.org/wiki/Lock_%28database%29

 

Locking not only provides exclusivity to writes but also prevents (or controls) reading of unfinished modifications (AKA uncommitted data).

 

i think the exclusivity to writes only includes other writes but reads.

if not, there's no need to say the next part "but also prevents (or controls) reading of unfinished modifications (AKA uncommitted data)."

cause if reading is not permitted amongst writing, no reading of unfinished modifications will occur.

 

 

锁不仅提供了对写操作排他性 ,(就是在一个线程对数据进行写操作的时候,不允许其他线程同时对同一数据进行写操作),也阻止或控制了对未完成修改的数据的读操作 ,也叫作未提交数据。也就是写前可读,写中不可读,写完可读;读前可写,读中不可写(我不清楚有没有读中概念,如果读是一个原子操作的话,就没有读中概念,也不存在读中不可写的问题),读完可写。

and please browse the detailed operations:
http://www.cnblogs.com/lingmaozhijia/articles/1339222.html

分享到:
评论

相关推荐

    Expert Oracle Database Architecture 2nd 原版PDF by Kyte

    important database topics such as locking, concurrency controls, how transactions work, and redo and undo, and why it is important for you to know about these things. Lastly, I examine the physical ...

    Spanner, TrueTime & the CAP Theorem.pdf

    It assigns globally consistent real-time timestamps to every datum written to it, and clients can do globally consistent reads across the entire database without locking. The CAP theorem [Bre12] says...

    Learning PostgreSQL(PACKT,2015)

    Next, it will give you an overview about the NoSQL capabilities of PostgreSQL along with Hstore, XML, Json and arrays. Finally by the end of the book, you'll learn to use the JDBC driver and ...

    微软内部资料-SQL性能优化3

    To make use of either more or less strict isolation levels in applications, locking can be customized for an entire session by setting the isolation level of the session with the SET TRANSACTION ...

    Oracle Core - Essential Internals for DBAs and Developers.(Jonathan Lewis)

    Oracle Core: Essential Internals for DBAs and Developers by Jonathan Lewis provides just the essential information about Oracle Database internals that every database administrator needs for ...

    微软内部资料-SQL性能优化5

    Because the trees are balanced, finding any record requires about the same amount of resources, and retrieval speed is consistent because the index has the same depth throughout. Clustered and ...

    Inside Microsoft SQL Server 2000

    Executing Batches,or What's Stored About Stored Procedures (and Functions)? . Temporary Stored Procedures . Autostart Stored Procedures . System Stored Procedures . Execute("any string") . ...

    Professional_Linux_Programming.pdf

    Configuring and Starting the Database 404 Changing the Default Password 405 The MySQL Client Interface 405 Relational Databases 405 SQL 406 The Relational Model 409 PHP 411 The PHP Language 411 Error ...

    BobBuilder_app

    Because the data pages are separate from the Page List structure, implementing locking is easy and isolated within a page and not the whole index, not so for normal trees. Splitting a page when full ...

    Delphi7.1 Update

    Using collections containing component references and form inheritance can result in incorrect references being stored in the dfm file.======================================================= CORE ...

    Python Cookbook, 2nd Edition

    File Locking Using a Cross-Platform API Recipe 2.29. Versioning Filenames Recipe 2.30. Calculating CRC-64 Cyclic Redundancy Checks Chapter 3. Time and Money Introduction Recipe 3.1. ...

    Practical Mod Perl

    Is This All We Need to Know About mod_perl? Section 2.9. References Chapter 3. Installing mod_perl Section 3.1. Configuring the Source Section 3.2. Building mod_perl (make) ...

    Hibernate Reference Documentation3.1

    21.1. A note about collections 21.2. Bidirectional one-to-many 21.3. Cascading lifecycle 21.4. Cascades and unsaved-value 21.5. Conclusion 22. Example: Weblog Application 22.1. Persistent Classes 22.2...

    Sql for mysql

    CHAPTER 2 The Tennis Club Sample Database . . . . . . . . . . . . . . . . 29 2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 2.2 Description of the ...

    MySQL 5.6 Reference Manual

    Table of Contents Preface, Notes, Licenses . . . . . . . . ....1. Licenses for Third-Party Components ....1.1. FindGTest.cmake License ....1.2. LPeg Library License ....1.3. LuaFileSystem Library License ....

    Perl Security pdf

    1. About Perl Training Australia....................................................................................................... 1 Training.........................................................

Global site tag (gtag.js) - Google Analytics