RelStorage transaction description

13 views
Skip to first unread message

Thierry Florac

unread,
Nov 13, 2019, 7:02:50 AM11/13/19
to pylons-discuss
Hi,

Transaction API (ITransaction interface) allows to store user and description (at least the matching request URL) into a given transaction properties.
These properties are then visible using, for example, ZODBBrowser.
But I'm actually using RelStorage (2.1, actually testing new 3.0, with history-free storage) and can't see these attributes anymore!
Is there any way to get them back?
I'm actually using Pyramid 1.9.4...

Best regards,
Thierry

Jason Madden

unread,
Nov 13, 2019, 7:39:54 AM11/13/19
to pylons-...@googlegroups.com
Hi,

RelStorage in history-free mode has never stored transaction information (description, user, extension). That's part of how it reduces the amount of time and storage space needed. RelStorage only preserves those details in history-preserving mode.

Note that it's not possible to simply switch between history-free and history-preserving modes in an existing RDBMS schema; the data must be copied into a new schema with the alternate configuration using zodbconvert first (https://relstorage.readthedocs.io/en/latest/zodbconvert.html).

We have an open issue about improving the documentation for this at https://github.com/zodb/relstorage/issues/112

Jason

Thierry Florac

unread,
Nov 13, 2019, 8:14:38 AM11/13/19
to pylons-discuss
Hi Jason,

Many thanks for your message!
The fact is that I realize that I can access to transaction information in other environments still using ZEO with FileStorage, not RelStorage!
For RelStorage I'm not planning to switch to history-mode any way...  ;)

Best regards,
Thierry
Reply all
Reply to author
Forward
0 new messages