×

Write behind cache with M-to-N referential integrity

  • US 8,527,557 B2
  • Filed: 03/29/2012
  • Issued: 09/03/2013
  • Est. Priority Date: 09/22/2010
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method, comprising:

  • caching, via a processor, a batch of data records generated by at least one application for persistent storage, where at least one of the batch of data records comprises at least one foreign key reference that each references one non-existent data record;

    where caching, via the processor, the batch of data records generated by the at least one application for persistent storage comprises;

    maintaining a bidirectional directed graph with each data record represented as a node within the bidirectional directed graph, where each vertex in the bidirectional directed graph other than a root node represents one of a plurality of parent records and one of a plurality of child records to be persisted to the database, and each edge in the bidirectional directed graph represents a foreign key directional relationship from one child record to one associated parent record;

    determining that one of a plurality of batch database storage events has occurred;

    iteratively determining, in response to the one of the plurality of batch database storage events, which of the at least one of the batch of data records do not comprise the at least one foreign key reference that each references the one non-existent data record; and

    persisting to a database, via a batch storage operation, each of the cached batch of data records that do not comprise the at least one foreign key reference that each references the one non-existent data record.

View all claims
  • 0 Assignments
Timeline View
Assignment View
    ×
    ×