Database management system, and query method and query execution program in the database management system
First Claim
1. A database management system having the function of accessing one or more external databases, comprising:
- a means for specifying whether functions in a query sent from a user are executed in external databases; and
a means for determining whether data referred to in said query sent from the user can be processed by access to one external database, wherein, when it is determined that all functions referred to in said query can be processed by access to said one external database and the user specifies execution in said one external database, said query is processed in said one external database, and when it is determined that all functions referred to in said query cannot be processed by access to said one external database, then after ones of said functions contained in said query specified to be executed in said one external database are executed, others of said functions in said query not executable in said one external database are executed in an internal database after getting an executed result into said internal database from said one external database.
1 Assignment
0 Petitions
Accused Products
Abstract
The present invention relates to an optimization method in a database management system having the function of accessing external databases. Conventionally, whether functions contained in a query can be executed in external databases depends on a database management system having the functions, and therefore there has been a problem in that a database utilization method cannot apply to query optimization and query execution performance is reduced. To solve the above problem, a database management system having the function of accessing external databases is provided with an optimization step comprising the steps of: obtaining specification about whether to execute functions in a query in external databases; determining whether data referred to in a query is confined to one database; and determining whether a user specifies that the functions in the query are executed in external databases.
9 Citations
7 Claims
-
1. A database management system having the function of accessing one or more external databases, comprising:
-
a means for specifying whether functions in a query sent from a user are executed in external databases; and
a means for determining whether data referred to in said query sent from the user can be processed by access to one external database, wherein, when it is determined that all functions referred to in said query can be processed by access to said one external database and the user specifies execution in said one external database, said query is processed in said one external database, and when it is determined that all functions referred to in said query cannot be processed by access to said one external database, then after ones of said functions contained in said query specified to be executed in said one external database are executed, others of said functions in said query not executable in said one external database are executed in an internal database after getting an executed result into said internal database from said one external database.
-
-
2. A query method in a database management system having the function of accessing one or more external databases, the method including the steps of:
-
(a) obtaining specification about whether functions in a query sent from a user are executed in external databases;
(b) determining whether said functions referred to in said query are executable by access to one external database and are specified by said user to be executed in said one external database;
(c) creating an access procedure for processing said query in said one external database if it is determined that said functions referred to in said query are executable by access to said one external database and are specified by said user; and
(d) creating an access procedure for processing for execution of some of the functions in said query which cannot be processed in said one external database in an internal database within said database management system if it is determined that said functions referred to in said query are not executable by access to said one external database. - View Dependent Claims (3, 4, 5)
-
-
6. A query execution program in a database management system having the function of accessing one or more external databases, the query execution program executing the procedures for:
-
obtaining specification about whether functions in a query sent from a user are executed in external databases;
(b) determining whether said functions referred to in said query are executable by access to one external database and are specified by said user to be executed in said one external database, (c) creating an access procedure for processing said query in said one external database if it is determined that said functions referred to in said query are executable by access to one external database and are specified by said user to be executed in said one external database, and (d) creating an access procedure for processing for execution of some of the functions in said query which cannot be processed in said one external database in an internal database within said database management system if it is determined that said functions referred to in said query are not executable by access to one external database. - View Dependent Claims (7)
-
Specification