Method And Apparatus for Propagating Tables While Preserving Cyclic Foreign Key Relationships
First Claim
1. A computer implemented process for propagating database tables with cyclic foreign keys, the computer implemented process comprising:
- identifying a first source database table and a second source database table with a cyclic relationship;
copying the first source database table to a first target database table, wherein all foreign keys referencing the second database table are replaced with “
NULL”
;
copying the second source database table to a second target database table; and
updating the first target database table with the foreign keys referencing the second database from the first source database table.
1 Assignment
0 Petitions
Accused Products
Abstract
The invention meeting the need identified above is the “Enhanced Database Propagation Program” or (EDPP). EDPP uses a cyclic member table that identifies a first source table in a cyclic relationship with a second source table. The first source table, identified in the cyclic member table, propagates first. EDPP replaces all foreign keys with “NULL” in the first target table. After the second source table in the subscription set has propagated to a second target table, EDPP updates first target table with the foreign keys from the first source table.
32 Citations
17 Claims
-
1. A computer implemented process for propagating database tables with cyclic foreign keys, the computer implemented process comprising:
-
identifying a first source database table and a second source database table with a cyclic relationship; copying the first source database table to a first target database table, wherein all foreign keys referencing the second database table are replaced with “
NULL”
;copying the second source database table to a second target database table; and updating the first target database table with the foreign keys referencing the second database from the first source database table. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. An apparatus for propagating database tables with cyclic foreign keys, the apparatus comprising:
-
a processor; a memory connected to the processor; a first source database table and a second source database table in the computer memory; an enhanced database propagation program in the memory operable to;
identify the first source database table and a second source database table with a cyclic relationship;
copy the first source database table to a first target database table, wherein all foreign keys referencing the second database table are replaced with “
null”
;
copy the second source database table to a second target database table; and
update the first target database table with the foreign keys referencing the second database from the first source database table. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A computer readable memory containing a plurality of instructions to cause a computer to propagate database tables with cyclic foreign keys, the plurality of instructions comprising:
-
a first instruction to identify a plurality of identified source database tables, wherein each of the identified source database tables have a cyclic relationship; a second instruction to copy a set of identified source database tables to a plurality of target database tables, wherein all cyclic foreign keys are replaced with “
NULL” and
wherein the set of identified source database tables comprise all but a last source database table;a third instruction to copy the last source database table to a last target database table; and a fourth instruction to update the plurality of target database tables with the cyclic foreign keys from the set of identified source database tables.
-
- 14. The computer readable memory of claim 14 further comprising a member table in the memory, wherein the member table identifies the set of identified source database tables.
Specification