×

Method and apparatus for self-tuning transaction batching

  • US 7,165,129 B1
  • Filed: 01/26/2004
  • Issued: 01/16/2007
  • Est. Priority Date: 01/26/2004
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method for efficiently batching transactions in a computerized system, comprising the steps of:

  • receiving a transaction at the computerized system;

    writing the received transaction data to a data buffer;

    if the received transaction is an only transaction in the computerized system, then flushing the data buffer to a non-volatile storage device;

    if the received transaction is not the only transaction in the computerized system, then determining whether a maximum response time will be met for an oldest transaction waiting for flush in the computerized system if the data buffer were flushed to the storage device immediately;

    if the maximum response time will not be met, then flushing the data buffer to the non-volatile storage device;

    if the maximum response time will be met, then determining whether a rate of data of incoming transactions is higher than a rate of flushing data from the data buffer to the non-volatile storage device if flushed immediately;

    if the rate of data of incoming transactions is lower than the rate of flushing data from the data buffer to the non-volatile storage device if flushed immediately, then flushing the data buffer to the non-volatile storage device;

    if the rate of incoming data is higher than the rate of flushing data from the data buffer to the non-volatile storage device if flushed immediately, then waiting to receive another transaction; and

    updating a flush performance history after each flush of the data buffer to the non-volatile storage device.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×