SEMANTIC QUERY OPTIMIZATION FOR TREE AND CHAIN QUERIES

Authors
Citation
W. Sun et Ct. Yu, SEMANTIC QUERY OPTIMIZATION FOR TREE AND CHAIN QUERIES, IEEE transactions on knowledge and data engineering, 6(1), 1994, pp. 136-151
Citations number
48
Categorie Soggetti
Information Science & Library Science","Computer Sciences, Special Topics","Engineering, Eletrical & Electronic","Computer Science Artificial Intelligence
ISSN journal
10414347
Volume
6
Issue
1
Year of publication
1994
Pages
136 - 151
Database
ISI
SICI code
1041-4347(1994)6:1<136:SQOFTA>2.0.ZU;2-9
Abstract
Semantic query optimization, or knowledge-based query optimization, ha s received increasing interest in recent years. This paper provides an effective and systematic approach to optimizing queries by appropriat ely choosing semantically equivalent transformations. Basically, there are two different types of transformations: transformations by elimin ating unnecessary joins, and transformations by adding/eliminating red undant beneficial/nonbeneficial selection operations (restrictions). A necessary and sufficient condition to eliminate a single unnecessary join is provided. We prove that it is NP-Complete to eliminate as many unnecessary joins as possible for various types of acyclic queries wi th the exception of the closure chain queries whose query graphs are c hains and all equi-join attributes are distinct. An algorithm is provi ded to minimize the number of joins in tree queries. This algorithm ha s an important property that, when applied to a closure chain query, i t will yield an optimal solution with the time complexity 0(n m), wh ere n is the number of relations referenced in the chain query, and m is the time complexity of a restriction closure computation. (A restri ction closure consists of all deducible restrictions of a query qualif ication under a given set of constraints. An algorithm to compute it w as given in [46]).