[SQL-CVS] SQLObject/SQLObject SQLObject.py,1.54,1.55
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: <ian...@us...> - 2003-09-07 18:06:28
|
Update of /cvsroot/sqlobject/SQLObject/SQLObject
In directory sc8-pr-cvs1:/tmp/cvs-serv20830/SQLObject
Modified Files:
SQLObject.py
Log Message:
added a little comment
Index: SQLObject.py
===================================================================
RCS file: /cvsroot/sqlobject/SQLObject/SQLObject/SQLObject.py,v
retrieving revision 1.54
retrieving revision 1.55
diff -C2 -d -r1.54 -r1.55
*** SQLObject.py 7 Sep 2003 07:17:50 -0000 1.54
--- SQLObject.py 7 Sep 2003 18:06:21 -0000 1.55
***************
*** 672,675 ****
--- 672,681 ----
self._SO_writeLock.acquire()
try:
+ # Maybe, just in the moment since we got the lock,
+ # some other thread did a _SO_loadValue and we have
+ # the attribute! Let's try and find out! We can keep
+ # trying this all day and still beat the performance
+ # on the database call (okay, we can keep trying this
+ # for a few msecs at least)...
result = getattr(self, attrName)
except AttributeError:
|