System and method for efficiently writing data from an in-memory database to a disk database
First Claim
1. A method of efficiently writing records from an in-memory database to a disk database, comprising:
- linking the records by a linked list;
creating a header data structure of the linked records;
linking a new record in the in-memory database to the header data structure; and
transferring the records in the linked list and the new record from the in-memory database to the disk database using the header data structure.
1 Assignment
0 Petitions
Accused Products
Abstract
A system and associated method write data from an in-memory database to a disk database in an efficient manner and with a relatively short lag time. The integration of data from in-memory to disk is achieved by limiting the operations of the in-memory database to insert only. The system shortens lag time by reducing the number of transactions required to transfer data from in-memory database to disk memory. The system compiles into an RDBMS, knowledge about the structure of the in-memory database, and then uses the end of the transaction callbacks from the RDBMS to keep the in-memory database and the disk memory in synch. The RDBMS includes a daemon that runs periodically to find records in the in-memory database that have not yet been written to the RDBMS, and then writes the found records to the RDBMS as part of a single transaction. If the transaction completes successfully, the in-memory database is updated to reflect which records have been “flushed” to the RDBMS. If the transaction fails, no action is taken. The present system synchronizes the in-memory database with the RDBMS.
-
Citations
30 Claims
-
1. A method of efficiently writing records from an in-memory database to a disk database, comprising:
-
linking the records by a linked list;
creating a header data structure of the linked records;
linking a new record in the in-memory database to the header data structure; and
transferring the records in the linked list and the new record from the in-memory database to the disk database using the header data structure. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. A computer program product having instruction codes for efficiently writing records from an in-memory database to a disk database, comprising:
-
a first set of instruction codes for linking the records by a linked list;
a second set of instruction codes for creating a header data structure of the linked records;
a third set of instruction codes for linking a new record in the in-memory database to the header data structure; and
a fourth set of instruction codes for transferring the records in the linked list and the new record from the in-memory database to the disk database using the header data structure. - View Dependent Claims (20, 21, 22, 23, 24, 25)
-
-
26. A system for efficiently writing records from an in-memory database to a disk database, comprising:
-
a first set of instruction codes for linking the records by a linked list;
a second set of instruction codes for creating a header data structure of the linked records;
a third set of instruction codes for linking a new record in the in-memory database to the header data structure; and
a fourth set of instruction codes for transferring the records in the linked list and the new record from the in-memory database to the disk database using the header data structure. - View Dependent Claims (27, 28, 29, 30)
-
Specification