geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florent Guillaume ...@nuxeo.com>
Subject txmanager last resource commit optimization
Date Thu, 12 Jan 2012 15:52:38 GMT
Hi,

Has there been any thought of implementing the so-called "last
resource commit optimization" in TransactionImpl.internalPrepare?
The idea is, on the last resource in the list, to avoid calling
prepare() and immediately call commit(onePhase=true). Deciding when
and which resource to put last in the list depends on a number of
factors.

Arjuna for instance implements this optimization, but only for
resources that implement a custom marker interface.

Thanks,
Florent

-- 
Florent Guillaume, Director of R&D, Nuxeo
Open Source, Java EE based, Enterprise Content Management (ECM)
http://www.nuxeo.com   http://www.nuxeo.org   +33 1 40 33 79 87

Mime
View raw message