Patent ID: 8442962

Claim:
A computer-implemented method, the method comprising: providing a transaction master for each of a plurality of transactions of a database, wherein each transaction master is configured to communicate with at least one transaction slave to manage execution of a transaction in the plurality of transactions, each transaction master configured to perform operations comprising: receiving a request to commit the transaction; initiating, based on the request, a two-phase commit operation to commit the transaction, wherein the two-phase commit operation comprises preparing for committing the transaction and writing a committed transaction to a memory; optimizing the two-phase commit operation by omitting the preparing for committing the transaction; and generating an acknowledgement of the committed transaction, wherein the omitting the preparing for committing the transaction further comprises: receiving a log sequence number corresponding to the transaction together with the request to commit the transaction; determining, at the transaction master, a stored log sequence number corresponding to the at least one transaction slave; comparing the received log sequence number and the stored log sequence number; and determining, based on the comparing, whether to omit the preparing for committing the transaction.