主权项 |
1. A computer-readable medium having instructions stored thereon that, when executed by a processor, cause the processor to import one or more data tables that each comprise one or more records into corresponding secondary tables, the importing comprising:
importing, from a database, into one or more intermediate tables, particular data tables having dependencies specified in a dependency tree that comprises branches connecting a first group of data tables with corresponding record types; determining whether the dependency tree specifies that a first data table of the particular data tables depends on another data table; in response to a determination that the dependency tree specifies that the first data table depends on another data table, moving, to a first working table of the secondary tables, records of the first data table that depend only on records that have already been imported from the database into the secondary tables; determining whether the dependency tree specifies that a second data table of the particular data tables depends on the first data table; and in response to a determination that the dependency tree specifies that the second data table depends on the first data table, moving, to a second working table of the secondary tables, records of the second data table that depend only on records that have already been imported from the database into the secondary tables. |