Patent ID: 9542463
Date: 2017-01-10
CPC Classifications: G06F

Claim:
1. A computer-implemented method for optimizing the number of xa_open and xa_close calls in a distributed database system, wherein the computer performs the following functions comprising: providing a xa open call from an application to create a new connection only if it is determined that an existing connection within a connection pool does not have the same xa criteria and xa info, wherein a dummy call is created that returns OK if it is determined that an existing connection within the connection pool has the same xa_criteria and xa_info and can already be utilize by the application, wherein the xa_info comprises instance specific information including database server name, database name, and flags; and in response to receiving an xa_close call from the application, delaying the xa_close call until a time out of the existing or new connection, wherein the only event which triggers performing of the xa_close call is the time out of the existing or new connection, upon which a resource manager is closed; wherein a two phase commit operation is performed that ensures modifications between multiple resources commit together or rollback together without having to perform additional xa_open calls to the distributed database system.