Enhanced performance for large versioned databases
AssigneeKinaxis Inc.
InventorsRobert N. Walker, James R. Crozman, Mosa Yeung, James Gordon Dagg
Life of this patent
Estimating the term…
Abstract
In accordance with the disclosed subject matter, systems and methods are provided for improving performance of a versioned database. Embodiments include systems and methods for improving performance of versioned databases by selectively loading portions of database files on disk into memory. Embodiments also include systems and methods for capturing and consolidating or condensing transaction logs into database files for loading.
Claims12
A computer-implemented method for improving performance of a versioned database, the method comprising:
- closing a transaction log from receiving new transactions, the transaction log tracking a series of commands for updating a versioned database based at least in part on one or more earlier database files;
- creating a new database file with a new database root tree node, the new database file configured to be append-only to avoid losing existing versioned database information, the new database root tree node replacing an old database root tree node for retrieving one or more records in the versioned database;
- appending updated data in the new database file, the updated data determined based at least in part on one or more transactions in the transactions log;
- updating the new database file to refer to the one or more earlier database files, based at least in part on the one or more transactions in the transactions log;
- storing the transaction log, the new database file, and the one or more earlier database files on a live system, the live system servicing requests for database operations;
- determining whether to copy at least one of the transaction log, the new database file, and the one or more earlier database files to a remote system, based at least in part on whether there is a new database file on the live system;
- if there is a new database file on the live system,
- determining whether there is a new initial database file on the live system;
- if there is a new initial database file on the live system,
- copying the new initial database file to a remote system, and
- deleting the one or more earlier database files and earlier transaction logs on the remote system;
- otherwise,
- copying new database files in sequence to the remote system;
- and
- deleting earlier transaction logs on the remote system;
- otherwise,
- determining whether there is a completed transaction log on the live system;
- and
- if there is a completed transaction log on the live system,
- copying the new completed transaction log to the remote system.
A system for improving performance of a versioned database, the system comprising:
- a virtual memory;
- a disk;
- and
- at least one processor configured to
- create a new database file with a new database root tree node, the new database file configured to be append-only to avoid losing existing versioned database information, the new database root tree node replacing an old database root tree node for retrieving one or more records in the versioned database;
- append updated data in the new database file, the updated data determined based at least in part on one or more transactions in a transactions log;
- update the new database file to refer to the one or more earlier database files, based at least in part on the one or more transactions in the transactions log;
- store the transaction log, the new database file, and the one or more earlier database files on a live system, the live system servicing requests for database operations;
- determine whether to copy at least one of the transaction log, the new database file, and the one or more earlier database files to a remote system, based at least in part on whether there is a new database file on the live system;
- if there is a new database file on the live system,
- determine whether there is a new initial database file on the live system;
- if there is a new initial database file on the live system,
- copy the new initial database file to a remote system, and
- delete the one or more earlier database files and earlier transaction logs on the remote system;
- otherwise,
- copy new database files in sequence to the remote system;
- and
- delete earlier transaction logs on the remote system;
- otherwise,
- determine whether there is a completed transaction log on the live system;
- and
- if there is a completed transaction log on the live system,
- copy the new completed transaction log to the remote system.
Dependencies are inferred from the claim text.