Changes between Initial Version and Version 1 of Ticket #2227, comment 27
- Timestamp:
- Apr 8, 2011, 4:32:37 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2227, comment 27
initial v1 1 I agree that nested calls to transaction management commands should transparent start using savepoints. It seems like the obvious abstraction layer.1 I agree that nested calls to transaction management commands should transparently start using savepoints. It seems like the obvious abstraction layer. 2 2 3 3 However, for backends which do not support savepoints, what would the fallback be? The only thing I can think of is to check for nesting and only allow transactions to commit in the outer nested block. This means that different backends will behave very differently, massively breaking the abstraction. 4 4 5 For backwards compatibility, the current transaction handling methods will probably have to stay, as they provide a 'broken', yet consistent way of handling transactions between backends. There are workarounds for core framework features, such as #15694. However, a new set of decorators with a slightly different API could be provided in parallel, with a signature something like this: 5 For backwards compatibility, the current transaction handling methods will probably have to stay, as they provide a 'broken', yet consistent way of handling transactions between backends. There are workarounds for core framework features, such as #15694. 6 7 However, a new set of decorators with a slightly different API could be provided in parallel, with a signature something like this: 6 8 7 9 {{{