×

Method for coordinating updates to database and in-memory cache

  • US 8,131,698 B2
  • Filed: 05/28/2008
  • Issued: 03/06/2012
  • Est. Priority Date: 05/28/2008
  • Status: Expired due to Fees
First Claim
Patent Images

1. A computer method of caching comprising:

  • executing a multi-threaded application, different threads executing respective transactions accessing a data store from a single server;

    representing respective status of each of said transactions;

    for each transaction, recording in a cache transition from performing the transaction to committing the transaction by twice caching results of the transaction, once based on respective represented transaction status and once based on data store determination of transaction, such that caching is accomplished in a two stage commit where the transaction indicates in its respective represented status that the transaction has started to commit, then the transaction goes on to commit and subsequently sets its respective requested status to indicate that the transaction is done, and the cache is formed of two levels that effectively record the transition from performing the transaction to committing the transaction, wherein each transaction sees its own produced value on top of the cache as shared including known commit values,wherein the step of representing respective status of said transactions includes;

    for each transaction, using a respective Future parameter having a Boolean value of true for succeeded/committed and false for failed/rolled back; and

    the step of caching results of the transaction includes;

    using a flag with the respective Future parameter, the flag recording transition from performing the transaction to committing the transaction and effectively stalling other transactions awaiting conclusion of the transaction.

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