From 3a5409780dcaa198884026b0c3f6d1d3a4be7d80 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 27 Jan 2006 00:34:38 +0000 Subject: [PATCH] starting uow doc.... --- doc/build/content/unitofwork.myt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/build/content/unitofwork.myt b/doc/build/content/unitofwork.myt index d96e41ee4a..69f1886f69 100644 --- a/doc/build/content/unitofwork.myt +++ b/doc/build/content/unitofwork.myt @@ -3,6 +3,17 @@ <&|doclib.myt:item, name="unitofwork", description="Unit of Work" &> <&|doclib.myt:item, name="overview", description="Overview" &> +

The concept behind Unit of Work is to track modifications to a field of objects, and then be able to commit those changes to the database in a single operation. Theres a lot of advantages to this, including that your application doesn't need to worry about individual save operations on objects, nor about the required order for those operations, nor about excessive repeated calls to save operations that would be more efficiently aggregated into one step. It also simplifies database transactions, providing a neat package with which to insert into the traditional database begin/commit phase. +

+

SQLAlchemy's unit of work includes these functions: +

<&|doclib.myt:item, name="begincommit", description="Begin/Commit" &> -- 2.47.3