Date: 2008-02-01 07:43:35 -0700 (Fri, 01 Feb 2008)
New Revision: 3235
cacheValues can be used with transactions.
--- 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
+ do so.
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`
- 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::
Get latest updates about Open Source Projects, Conferences and News.