]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- add a note about snapshot isolation [ticket:2078]
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 28 Mar 2011 00:50:47 +0000 (20:50 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 28 Mar 2011 00:50:47 +0000 (20:50 -0400)
lib/sqlalchemy/dialects/mssql/base.py

index ae544584f4c75aed0832ea94829495288346237d..16d9217853ad29fbceff20b280e422ed06ae8a85 100644 (file)
@@ -141,6 +141,23 @@ Declarative form::
 This option can also be specified engine-wide using the
 ``implicit_returning=False`` argument on :func:`.create_engine`.
 
+Enabling Snapshot Isolation
+---------------------------
+
+Not necessarily specific to SQLAlchemy, SQL Server has a default transaction 
+isolation mode that locks entire tables, and causes even mildly concurrent
+applications to have long held locks and frequent deadlocks.   
+Enabling snapshot isolation for the database as a whole is recommended 
+for modern levels of concurrency support.  This is accomplished via the 
+following ALTER DATABASE commands executed at the SQL prompt::
+
+    ALTER DATABASE MyDatabase SET ALLOW_SNAPSHOT_ISOLATION ON
+
+    ALTER DATABASE MyDatabase SET READ_COMMITTED_SNAPSHOT ON
+
+Background on SQL Server snapshot isolation is available at
+http://msdn.microsoft.com/en-us/library/ms175095.aspx.
+  
 Known Issues
 ------------