[SQL-CVS] r3235 - SQLObject/branches/0.8/docs
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: <sub...@co...> - 2008-02-01 14:43:45
|
Author: phd
Date: 2008-02-01 07:43:35 -0700 (Fri, 01 Feb 2008)
New Revision: 3235
Modified:
SQLObject/branches/0.8/docs/SQLObject.txt
Log:
cacheValues can be used with transactions.
Modified: SQLObject/branches/0.8/docs/SQLObject.txt
===================================================================
--- SQLObject/branches/0.8/docs/SQLObject.txt 2008-01-30 13:36:16 UTC (rev 3234)
+++ SQLObject/branches/0.8/docs/SQLObject.txt 2008-02-01 14:43:35 UTC (rev 3235)
@@ -705,8 +705,7 @@
object the database will be queried for a value, i.e., a ``SELECT``
will be issued. If you want to handle concurrent access to the
database from multiple processes then this is probably the way to
- do so. You should also use it with transactions_ (it is not
- implied).
+ do so.
`registry`:
Because SQLObject uses strings to relate classes, and these
@@ -1360,16 +1359,6 @@
.begin(). The last .commit() should be called as .commit(close=True) to
release low-level connection.
-If you want to use transactions you should also turn `_cacheValues`
-off, like::
-
- class Person(SQLObject):
- _cacheValue = False
-
-This, though, makes attribute access very slow (SQLObject queries database
-for an every attribute access). If one wants to set `_cacheValue = True`
-one has to synchronize objects between threads herself.
-
You can use SELECT FOR UPDATE in those databases that support it::
Person.select(Person.q.name=="value", forUpdate=True)
|