Thread: XA transactions much slower on 14.2 than on 13.5

XA transactions much slower on 14.2 than on 13.5

From
Mladen Gogala
Date:

My boss asked me to upgrade one of the development  databases from 13.5 --> 14.2. One thing that we've noticed right away is that XA transactions (2-phase commit) are much slower on 14.2 than on 13.5. Were there any significant changes to the XA protocol in the version 14? Did anybody else encountered this problem?

When I say "XA transactions are much slower", I mean that commit and/or rollback take much longer. The SQL execution takes the same and the plans are identical to the 13.5 version. The application code is the same, using IBM WebSphere 9.0.4.
Regards

-- 
Mladen Gogala
Database Consultant
Tel: (347) 321-1217
https://dbwhisperer.wordpress.com

Re: XA transactions much slower on 14.2 than on 13.5

From
Tom Lane
Date:
Mladen Gogala <gogala.mladen@gmail.com> writes:
> My boss asked me to upgrade one of the development  databases from 13.5 
> --> 14.2. One thing that we've noticed right away is that XA 
> transactions (2-phase commit) are much slower on 14.2 than on 13.5. Were 
> there any significant changes to the XA protocol in the version 14? Did 
> anybody else encountered this problem?

There were a bunch of changes around the 2PC code to support logical
replication of 2PC transactions, but I don't think they should have
made for any particular performance difference in non-replicated
servers.  Can you put together a self-contained test case that
demonstrates what you're seeing?

            regards, tom lane