Abstract
To meet users' growing needs for accessing pre-existing heterogeneous databases, a multidatabase system (MDBS) integrating multiple databases has attracted many researchers recently. A key feature of an MDBS is local autonomy. For a query retrieving data from multiple databases, global query optimization should be performed to achieve good system performance. There are a number of new challenges for global query optimization in an MDBS. Among them, a major one is that some local optimization information, such as local cost parameters, may not be available at the global level because of local autonomy. It creates difficulties for finding a good decomposition of a global query during query optimization. To tackle this challenge, a new query sampling method is proposed in this paper. The idea is to group component queries into homogeneous classes, draw a sample of queries from each class, and use observed costs of sample queries to derive a cost formula for each class by multiple regression. The derived formulas can be used to estimate the cost of a query during query optimization. The relevant issues, such as query classification rules, sampling procedures, and cost model development and validation, are explored in this paper. To verify the feasibility of the method, experiments were conducted on three commercial database management systems supported in an MDBS. Experimental results demonstrate that the proposed method is quite promising in estimating local cost parameters in an MDBS.
Similar content being viewed by others
References
Y. Breitbart and A. Silberschatz, Multidatabase update issues, In Proceedings of the ACM SIGMOD Conference, pages 135-142, 1988.
M. W. Bright, A. R. Hurson, and S. H. Pakzad, A taxonomy and current issues in multidatabase systems, IEEE Computer, 25(3):50-59, Mar. 1992.
S. Chatterjee and B. Price, Regression Analysis by Example, 2nd Ed. John Wiley & Sons, Inc., 1991.
W. G. Cochran, Sampling Techniques, John Wiley & Sons, Inc., 1977.
IBM Corp, Database 2 OS/2 guide, User manual, IBM Canada Ltd. Lab., North York, Canada, 1993.
U. Dayal and H. Hwang, View definition and generalization for database integration in a multidatabase system, IEEE Trans. Soft. Eng., SE-10(6):628-644, Nov. 1984.
W. Du, R. Krishnamurthy, and M. C. Shan, Query optimization in heterogeneous DBMS, In Proceedings of VLDB, pages 277-91, 1992.
W. C. Hou et al, Error-constrained COUNT query evaluation in relational databases, In Proceedings of SIGMOD, pages 278-87, 1991.
M. Jarke and J. Koch, Query optimization in database systems, Computing Surveys, 16(2):111-152, June 1984.
R. J. Lipton and J. F. Naughton, Practical selectivity estimation through adaptive sampling, In Proceedings of SIGMOD, pages 1-11, 1990.
W. Litwin, L. Mark, and N. Roussopoulos, Interoperability of multiple autonomous databases, ACM Computing Surveys, 22(3):267-293, Sept. 1990.
H. Lu, B.-C. Ooi, and C.-H. Goh, Onglobal multidatabase query optimization, SIGMOD Record, 21(4):6-11, Dec. 1992.
H. Lu and M.-C. Shan, On global query optimization in multidatabase systems, In 2nd Int’l workshop on Research Issues on Data Eng., page 217, Tempe, Arizona, USA, 1992.
M. Muralikrishna and D. J. DeWitt, Equi-Depth histograms for estimating selectivity factors for multi-Dimensional queries, In Proceedings of SIGMOD, pages 28-36, 1988.
J. Neter, W. Wasserman, and M. H. Kutner, Applied Linear Statistical Models, 3rd Ed. Richard D. Irwin, Inc., 1990.
F. Olken and D. Rotem, Simple random sampling from relational databases, In Proceedings of 12th VLDB, pages 160-9, 1986.
R. C. Pfaffenberger and J. H. Patterson, Statistical Methods for Business and Economics, Richard D. Irwin, Inc., 1987.
P. G. Selinger et al., Access path selection in relational database management systems, In Proceedings of ACM SIGMOD, pages 23-34, 1979.
G. P. Shapiro and C. Connel, Accurate estimation of the number of tuples satisfying a condition, In Proceedings of SIGMOD, pages 256-76, 1984.
A. P. Sheth and J. A. Larson, Federated database systems for managing distributed, heterogeneous, and autonomous databases, ACM Computing Surveys, 22(3):183-236, Sept. 1990.
N. Wang, P. Zhou, Qiang Zhu, et al., NITDB: A multi-user relational DBMS for microcomputers, Chinese Computer Journal, 10(8):477-84, Aug. 1987.
N. Wang and Qiang Zhu, Query processing in a relational micro-DBMS with multiple optimization strategies, Computer Research and Development, 23(9):24-30, Sept. 1986.
N. Wang and Qiang Zhu, Functionality and implementation techniques of the relational DBMS: NITDB, Software Industry, 5(9):28-37, Sept. 1988.
Qiang Zhu, Query optimization in multidatabase systems, In Proceedings of the 1992 IBM CAS Conference, vol. II, pages 111-27, Toronto, Canada, Nov. 1992.
Qiang Zhu, An integrated method of estimating selectivities in a multidatabase system, In Proceedings of the 1993 IBM CAS Conference, pages 832-47, Toronto, Canada, Oct. 1993.
Qiang Zhu and P.-Å. Larson, A fuzzy query optimization approach for multidatabase systems, International Journal of Uncertainty, Fuzziness and Knowledge-Based Systems, 5(6):701-22, 1997.
Qiang Zhu and P.-Å. Larson, A query sampling method for estimating local cost parameters in a multidatabase system. In Proceedings of the 10th IEEE International Conference on Data Engineering, pages 144-53, Houston, Texas, Feb. 1994.
Qiang Zhu and P.-Å. Larson, Establishing a fuzzy cost model for query optimization in a multidatabase system, In Proceedings of the 27th IEEE/ACM Hawaii International Conference on System Sciences, pages 263-72, Maui, Hawaii, Jan. 1994.
Author information
Authors and Affiliations
Rights and permissions
About this article
Cite this article
Zhu, Q., Larson, På. Solving Local Cost Estimation Problem for Global Query Optimization in Multidatabase Systems. Distributed and Parallel Databases 6, 373–421 (1998). https://doi.org/10.1023/A:1008603331221
Issue date:
DOI: https://doi.org/10.1023/A:1008603331221
