Transferring records between tables using a change transaction log
First Claim
Patent Images
1. A method comprising:
- generating a first transaction for deleting a record from a first table in a database;
deleting the record from the first table;
in response to the generation of the first transaction, storing a copy of the record in an entry of a transaction log before the record is deleted from the first table;
after the record is deleted from the first table, generating a second instruction for copying the record from the transaction log to a second table; and
copying the record from the entry to the second table;
generating a first message in response to generating the first transaction, whereinthe first message comprises a table name of the first table and an identifier of the record in the first table, andthe first message comprises information that indicates that the record was or will be deleted; and
transmitting the first message to a computer system that implements a search engine;
generating a second message in response to generating the second instruction, whereinthe second message comprises the table name of the second table and the identifier of the record in the second table, andthe second message comprises information that indicates that the record has been inserted into the second table; and
transmitting the second message to the computer system that implements the search engine;
generating a second index identifier of the record using the table name of the second table and the identifier of the record in the second table.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and apparatus for transferring records between database tables using a transaction log. In one embodiment of the method, a first application generates a transaction for deleting a record from a first table in a database. In response to the generation of the first transaction, a copy of the record is stored in an entry of a transaction log before the record is deleted from the first table. A second application generates an instruction for copying the record from the transaction log to a second table, and the record is copied from the entry to the second table.
70 Citations
11 Claims
-
1. A method comprising:
-
generating a first transaction for deleting a record from a first table in a database; deleting the record from the first table; in response to the generation of the first transaction, storing a copy of the record in an entry of a transaction log before the record is deleted from the first table; after the record is deleted from the first table, generating a second instruction for copying the record from the transaction log to a second table; and copying the record from the entry to the second table; generating a first message in response to generating the first transaction, wherein the first message comprises a table name of the first table and an identifier of the record in the first table, and the first message comprises information that indicates that the record was or will be deleted; and transmitting the first message to a computer system that implements a search engine; generating a second message in response to generating the second instruction, wherein the second message comprises the table name of the second table and the identifier of the record in the second table, and the second message comprises information that indicates that the record has been inserted into the second table; and transmitting the second message to the computer system that implements the search engine; generating a second index identifier of the record using the table name of the second table and the identifier of the record in the second table. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A non-transitory computer readable medium (CRM) storing instructions, wherein a method is implemented in response to executing the instructions, the method comprising:
-
receiving a first instruction for deleting a record from a first table in a database; deleting the record from the first table; storing a copy of the record in an entry of a transaction log before the record is deleted from the first table; receiving a second instruction for copying the record from the transaction log to a second table, after the record is deleted from the first table; and copying the record from the entry to the second table; generating a first message in response to receiving the first instruction, wherein the first message comprises a table name of the first table and an identifier of the record in the first table, and the first message comprises information that indicates that the record was or will be deleted; and transmitting the first message to a computer system that implements a search engine; generating a second message in response to receiving the second instruction, wherein the second message comprises the table name of the second table and the identifier of the record in the second table, and the second message comprises information that indicates that the record has been inserted into the second table; and transmitting the second message to the computer system that implements the search engine; generating a second index identifier of the record using the table name of the second table and the identifier of the record in the second table. - View Dependent Claims (8, 9, 10, 11)
-
Specification