/ Hathaway Weblog / Ape and transactions, part 2

Shane :: Zope :: January 11, 2005 # Ape and transactions, part 2

Ouch. On my own box, I changed Ape to cause a ZODB transaction even when loading objects so that it would be possible to commit or abort SQL transactions started implicitly by SELECT statements. I wrote a test then made the test pass, but getting it to pass was harder than I expected, so I dug some more. It turns out that the scanning functionality also causes implicit transactions. Oops.

The scanning functionality periodically scans for changes to objects in the database. When it sees a change made outside ZODB, it causes the changed object to be removed from all ZODB caches. It scans outside the ZODB transaction model.

Okay, having written that down, it seems apparent that one way or another, the scanner has to cause the SQL transaction to commit or abort. I'll try to achieve that.

No further comments may be added.

Click below to fill in the scripture reference.
Your browser is not able to display the scripture fill-in program. To see it, enable Javascript or use Mozilla 1.0 or better.
And charity suffereth long, and is kind, and envieth not, and is not puffed up, seeketh not her own, is not easily provoked, thinketh no evil, and rejoiceth not in iniquity but rejoiceth in the truth, beareth all things, believeth all things, hopeth all things, endureth all things.

Church: lds scriptures provident games pearls kzion shiblon film chancellor gateway cumorah byutv happiness nephi
Zope: freezope org com zen labs newbies zettai warnes
Python: home pyzine daily icanprogram
Genealogy: cyndi
Weblogs: jeffrey paul jon joel another-shane guido barry jeremy windley chrism zac
News: quakes lwn dc weather deseret zeitgeist softwarelivre
Zaurus: software developer
Tech: tango spintronics thin
Semantic: aaron sean
Reference: css rdf html4 javascript geckodom iecss emacs phrases acronyms
Reverse: advogato slashdot
Misc: gimp-savvy directory soda jokes shouldexist pdphoto