Data loading tool
First Claim
Patent Images
1. A method for loading data from a backup image of a database, the method comprising:
- selecting a subset statement defining a subset of the data in the database;
identifying tables of the database based on metadata of the database;
writing a target database having a structure but not the data of the identified tables;
constructing, by a computer processor, one or more table statements defining a subset of each identified table based on the subset statement, wherein the subset of each identified table includes particular rows of a corresponding table;
determining an unload order to unload the table statements in the least time, wherein the unload order specifies unloading the identified tables having filter predicates specified in the subset statement before other tables and the unload order specifies that unloading the identified tables having the lowest expected number of rows are processed first; and
unloading selected data from the backup image into the target database in the determined unload order using respective table statements as filters.
1 Assignment
0 Petitions
Accused Products
Abstract
In an exemplary embodiment of this disclosure, a method for loading data from a backup image of a database includes selecting a subset statement defining a subset of the data in the database. Tables of the database are identified based on metadata of the database. A target database is written having the structure but not the data of the identified tables. One or more table statements are constructed, by a computer processor, defining a subset of each identified table based on the subset statement. Selected data is unloaded from a backup image into the target database using respective table statements as filters.
11 Citations
18 Claims
-
1. A method for loading data from a backup image of a database, the method comprising:
-
selecting a subset statement defining a subset of the data in the database;
identifying tables of the database based on metadata of the database;writing a target database having a structure but not the data of the identified tables; constructing, by a computer processor, one or more table statements defining a subset of each identified table based on the subset statement, wherein the subset of each identified table includes particular rows of a corresponding table; determining an unload order to unload the table statements in the least time, wherein the unload order specifies unloading the identified tables having filter predicates specified in the subset statement before other tables and the unload order specifies that unloading the identified tables having the lowest expected number of rows are processed first; and unloading selected data from the backup image into the target database in the determined unload order using respective table statements as filters. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A computer program product comprising a non-transitory computer readable storage medium having computer readable program code embodied thereon, wherein the computer readable program code is executable by a processor to perform a method comprising:
-
selecting a subset statement defining a subset of data in a database;
identifying tables of the database based on metadata of the database;writing a target database having a structure but not the data of the identified tables; constructing one or more table statements defining a subset of each identified table based on the subset statement, wherein the subset of each identified table includes particular rows of a corresponding table; determining an unload order to unload the table statements in the least time, wherein the unload order specifies unloading the identified tables having filter predicates specified in the subset statement before other tables and the unload order specifies that unloading the identified tables having the lowest expected number of rows are processed first; and unloading selected data from a backup image into the target database using respective table statements as filters in the determined unload order. - View Dependent Claims (10, 11, 12)
-
-
13. A data loading apparatus for loading data from a backup image of a database, the apparatus comprising:
-
a selector configured to select a subset statement defining a subset of the data in the database; an identifier configured to identify tables of the database based on metadata of the database; a writer configured to write a target database having a structure but not the data of the identified tables; a builder configured to construct one or more table statements defining a subset of each identified table based on the subset statement, wherein the subset of each identified table includes particular rows of a corresponding table; a determination engine configured to determine an unload order to unload the table statements in the least time, wherein the unload order specifies unloading the identified tables having filter predicates specified in the subset statement before other tables and the unload order specifies that unloading the identified tables having the lowest expected number of rows are processed first; and an unloader configured to unload selected data from the backup image into the target database using respective table statements as filters in the determined unload order. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification