Restoring records using a change transaction log
First Claim
Patent Images
1. A method comprising:
- detecting, by a transaction monitor executing on a computer system that also executes an application, a first transaction configured to delete a record stored in a database;
in response to the detection of the first transaction, storing, by the transaction monitor, a copy of the record in an entry of a transaction log before the record is deleted;
in response to the detection of the first transaction, generating, by the transaction monitor, a first message, which is configured to indicate to a search engine in data communication with the application, that an update to a search index related to the database is needed to reflect the deletion;
transmitting the first message to the search engine;
causing deletion of one or more instances of an index identifier of the record from the search index;
receiving an instruction configured to restore the record in the database, after the record has been deleted; and
in response to the receipt of the instructions, restoring the record in the database using only the copy of the record in the transaction log entry that comprises all information needed to restore the record in the database.
1 Assignment
0 Petitions
Accused Products
Abstract
In one embodiment of the method, a first transaction is generated for deleting a record from a table of a database. In response the record is deleted from the table. Further in response to the generation of the first transaction, a copy of data of the record is stored in an entry of a transaction log before the record is deleted from the table. An instruction is then generated, and in response the record is restored to the table after the record is deleted, wherein the record is restored in the table using the copy of the data in the transaction log entry.
-
Citations
21 Claims
-
1. A method comprising:
-
detecting, by a transaction monitor executing on a computer system that also executes an application, a first transaction configured to delete a record stored in a database; in response to the detection of the first transaction, storing, by the transaction monitor, a copy of the record in an entry of a transaction log before the record is deleted; in response to the detection of the first transaction, generating, by the transaction monitor, a first message, which is configured to indicate to a search engine in data communication with the application, that an update to a search index related to the database is needed to reflect the deletion; transmitting the first message to the search engine; causing deletion of one or more instances of an index identifier of the record from the search index; receiving an instruction configured to restore the record in the database, after the record has been deleted; and in response to the receipt of the instructions, restoring the record in the database using only the copy of the record in the transaction log entry that comprises all information needed to restore the record in the database. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A non-transitory computer-readable storage medium storing instructions, wherein a method is implemented in response to executing the instructions, the method comprising:
-
detecting, by a transaction monitor executing on a computer system that also executes an application, a first transaction configured to delete a record stored in a database; in response to the detection of the first transaction, storing, by the transaction monitor, a copy of the record in an entry of a transaction log before the record is deleted; in response to the detection of the first transaction, generating, by the transaction monitor, a first message, which is configured to indicate to a search engine in data communication with the application, that an update to a search index related to the database is needed to reflect the deletion; transmitting the first message to the search engine; causing deletion of one or more instances of an index identifier of the record from the search index; receiving an instruction configured to restore the record in the database, after the record has been deleted; and in response to the receipt of the instruction, restoring the record in the database using only the copy of the record in the transaction log entry that comprises all information needed to restore the record in the database. - View Dependent Claims (13, 14, 15, 16)
-
-
17. An apparatus comprising:
-
a memory system, wherein the memory system is configured to store a database; and a computer system comprising a memory, wherein the memory stores instructions, and the computer system implements a method in response to executing the instructions, the method comprising detecting, by a transaction monitor executing on the computer system that also executes an application, a first transaction configured to delete a record stored in the database, in response to the detection of the first transaction, storing, by the transaction monitor, a copy of the record in an entry of a transaction log before the deletion is performed, in response to the detection of the first transaction, generating, by the transaction monitor, a first message, which is configured to indicate to a search engine in data communication with the application, that an update to a search index related to the database is needed to reflect the deletion, transmitting the first message to the search engine, causing deletion of one or more instances of an index identifier of the record from the search index, receiving an instruction configured to restore the record in the database, after the record has been deleted, and in response to the receipt of the instruction, restoring the record in the database using only the copy of the record in the transaction log entry that comprises all information needed to restore the record in the database. - View Dependent Claims (18, 19, 20, 21)
-
Specification