Re: [ZODB-Dev] Re: Savepoints are invalidated once they are used

2005-07-12 Thread Christian Heimes
Tim Peters wrote: Bless you! Alas, I haven't received any messages from any Zope Corp checkin list since Sunday, so we'll just have to take your word for it . svn diff -r 33279:33280 \ svn+ssh://svn.zope.org/repos/main/Zope/branches/Zope-2_8-branch

[ZODB-Dev] Re: Savepoints are invalidated once they are used

2005-07-12 Thread Christian Heimes
Jim Fulton wrote: A good community project would be to convert all of the subtransaction calls in Zope to savepoint calls. Done I found commit(1) in Zope3 zope.app.file.file Pdata handling and in code and tests in Zope2. Christian ___ For more i

[ZODB-Dev] Re: Savepoints are invalidated once they are used

2005-07-11 Thread Christian Heimes
Tim Peters wrote: Today I stumbled over an unexpected behavior of savepoints. As far as I'm able to understand savepoints they mark a well defined state in the middle of a transaction. A savepoint is invalid if its transaction is committed or another savepoint is created. No, that's not the in

[ZODB-Dev] Re: Savepoints are invalidated once they are used

2005-07-11 Thread Christian Heimes
Jim Fulton wrote: From my point of view I can't see a reason why the ZODB forbids a second rolback to the savepoint. I agree. This should be changed. Great! HTH :) Christian ___ For more information about ZODB, see the ZODB Wiki: http://www.zop

[ZODB-Dev] Savepoints are invalidated once they are used

2005-07-11 Thread Christian Heimes
Today I stumbled over an unexpected behavior of savepoints. As far as I'm able to understand savepoints they mark a well defined state in the middle of a transaction. A savepoint is invalid if its transaction is committed or another savepoint is created. Well nesting savepoints would be a nice

[ZODB-Dev] Re: How expensive are savepoints?

2005-07-09 Thread Christian Heimes
Tim Peters wrote: [Christian Heimes] How expensive and costly are savepoints? 6, maybe 6.2, depending on the units you're using . Seriously, how can such a question be answered? How expensive is math.log()? My professor for numerical mathmatics would say it is very expensive be

[ZODB-Dev] How expensive are savepoints?

2005-07-09 Thread Christian Heimes
How expensive and costly are savepoints? I wasn't able to find informations about it in the Zope docs. Are they as expensive as sub transactions or are they just using some CPU cycles? I'm thinking about using savepoints in my migration code. The code is migrating a possible large amount of ob

Re: [ZODB-Dev] ZODB memory problems (was: processing a Very Large file)

2005-05-21 Thread Christian Heimes
DJTB wrote: What should I do to make sure RAM is no longer a limiting factor? (in other words: The program should work with any (large) value of self.__range and self.__et_count Because in my case, self.__et_count = 5000 is only a toy example...) I'm now working on a PC with 2.5 GB RAM and even t

Re: [ZODB-Dev] Computed Attributes and property's

2005-05-17 Thread Christian Heimes
Stephen Masterman wrote: Does ZODB have something equivalent to Durus' Computed Attributes? Which I understand are attributes (or methods) on a Persistent object that compute a value from some other attributes and then cache that result for each connection, and if any of the attributes from which t

Re: [ZODB-Dev] historicalRevision for subobjects

2005-05-04 Thread Christian Heimes
Dieter Maurer wrote: It is possible (by means of a historical connection) and I posted relevant code some time ago. Search the archive for "HistoryJar". Sorry I can't find the code. Neither with historical jar zodb nor historical jar dieter googles something useful for me. Christian _

[ZODB-Dev] historicalRevision for subobjects

2005-04-29 Thread Christian Heimes
Hey :) I need some guidance from ZODB gurus. Christian Theune and me have implemented a diffed history feature for Archetypes based content types. It's part of ATContentTypes and is meant to help reviewers to see the differences between different revisions of an object. The code is using the met