[ZODB-Dev] Transaction notes
I'd like to add something to our application framework code so that when page messages are displayed to the user (simple messages like 'saved changes' or 'deleted ') that they are also added to the transaction description (using the 'note' method on transactions). Our fsdumps and fstails have very little useful information so I want to re-use an internal API that we use to help provide some information when debugging the amount of writing our application does. My question is: Will using transaction 'note' in a non-writing transaction cause a record to be written out when using FileStorage and/or ZEO? Thanks, Jeff Shell j...@bottlerocket.net ___ For more information about ZODB, see http://zodb.org/ ZODB-Dev mailing list - ZODB-Dev@zope.org https://mail.zope.org/mailman/listinfo/zodb-dev
Re: [ZODB-Dev] Transaction notes
On Tue, Nov 15, 2011 at 2:30 PM, Jeff Shell j...@bottlerocket.net wrote: I'd like to add something to our application framework code so that when page messages are displayed to the user (simple messages like 'saved changes' or 'deleted ') that they are also added to the transaction description (using the 'note' method on transactions). Our fsdumps and fstails have very little useful information so I want to re-use an internal API that we use to help provide some information when debugging the amount of writing our application does. My question is: Will using transaction 'note' in a non-writing transaction cause a record to be written out when using FileStorage and/or ZEO? No. Jim -- Jim Fulton http://www.linkedin.com/in/jimfulton ___ For more information about ZODB, see http://zodb.org/ ZODB-Dev mailing list - ZODB-Dev@zope.org https://mail.zope.org/mailman/listinfo/zodb-dev
Re: [ZODB-Dev] Transaction notes
Hi Jeff, I'd like to add something to our application framework code so that when page messages are displayed to the user (simple messages like 'saved changes' or 'deleted ') that they are also added to the transaction description (using the 'note' method on transactions). [...snip...] My question is: Will using transaction 'note' in a non-writing transaction cause a record to be written out when using FileStorage and/or ZEO? In short, no. Longer answer: I'm assuming by 'non-writing transaction' you are meaning a transaction which has been abort() or doom() -ed. If you mean instead an 'empty' transaction that has no actual changed data, but which still calls 'commit()'; then the answer is still 'no' and the reason is simple - against which database would the note be written? Cheers, Darryl Dixon Winterhouse Consulting Ltd http://www.winterhouseconsulting.com ___ For more information about ZODB, see http://zodb.org/ ZODB-Dev mailing list - ZODB-Dev@zope.org https://mail.zope.org/mailman/listinfo/zodb-dev