Download:
|
by Shaul Dar, H. V. Jagadish, Alon Y. Levy, Divesh Srivastava
http://web.mthcsc.wfu.edu/~burg/ILPS95/ILPS95ps/dar.ps.gz
Add To MetaCart
Abstract:
We investigate the problem of using materialized views to compute answers to SQL queries with grouping and aggregation, in the presence of multiset tables. This problem is important in many applications, such as data warehousing, mobile computing, global information systems, and maintaining physical data independence, where access to local or cached materialized views may be cheaper than access to the underlying database. In addition, this problem has obvious potential in optimizing query evaluation. The problem is formally stated as finding a rewriting of an SQL query Q where the materialized views occur in the FROM clause, and the rewritten query is multiset-equivalent to Q. First, we study the case where the query has grouping and aggregation but the views do not, and show that usability of a view in evaluating a query essentially requires an isomorphism between the view and a portion of the query. We present a rewriting algorithm that generates all possible rewritings of the query using the views (for the case of equality predicates); when using multiple views, considering the views iteratively in any order yields all possible rewritings. Second, we study the case where the query and the views both have grouping and aggregation, identify the conditions under which the aggregation information present in a view is sufficient to perform the aggregate computations required in the query, and present a rewriting algorithm. Third, we outline how our techniques can be extended to take advantage of set-valued queries and views in the presence of keys or SELECT DISTINCT.
Citations
|
397
|
Answering queries using views
– Levy, Mendelzon, et al.
- 1995
|
|
236
|
Maintaining views incrementally
– Gupta, Mumick, et al.
- 1993
|
|
235
|
View Maintenance in a Warehousing Environment
– Zhuge, Garcia-Molina, et al.
- 1995
|
|
221
|
Optimizing queries with materialized views
– Chaudhuri, Krishnamurthy, et al.
- 1995
|
|
215
|
Data model and query evaluation in global information systems
– Srivastava, Kirk
- 1995
|
|
196
|
Deriving production rules for incremental view maintenance
– Ceri, Widom
- 1991
|
|
185
|
Sleepers and workaholics: caching strategies for mobile environments
– Barbara, Imielinski
- 1994
|
|
173
|
Wm.; Efficiently Updating Materialized Views
– Blakeley, Larson, et al.
- 1986
|
|
98
|
Including Group-By in Query Optimization
– Chaudhuri, Shim
- 1994
|
|
96
|
Query transformation for PSJqueries
– Yang, Larson
- 1987
|
|
76
|
The GMAP: A versatile tool for physical data independence
– Tsatalos, Solomon, et al.
|
|
74
|
Implementation and performance evaluation of the ADMS query optimizer
– Chen, Roussopoulos
- 1994
|
|
64
|
Adapting Materialized Views After Redefinitions
– Gupta, Mumick, et al.
- 1995
|
|
64
|
Data replication for mobile computers
– Huang, Sistla, et al.
- 1994
|
|
57
|
Optimization of real conjunctive queries
– Chaudhuri, Vardi
- 1993
|
|
56
|
View maintenance issues for the chronicle data model
– Jagadish, Mumick, et al.
- 1995
|
|
56
|
On rules, procedures, caching and views in database systems
– Stonebraker, Jhingran, et al.
- 1990
|
|
54
|
Expression Analysis in Database Applications
– Finkelstein, Common
- 1982
|
|
53
|
Performing Group-By Before Join
– Yan, Larson
- 1994
|
|
52
|
Intelligent caching and indexing techniques for relational database systems
– Sellis
- 1988
|
|
8
|
Research Issues in Databases for ARCS: Active Rapidly Changing Data Systems
– Datta
- 1994
|
|
3
|
Venkatesh Harinarayan, and Dallan Quass. Generalized projections: A powerful approach to aggregation
– Gupta
- 1995
|
|
3
|
Data warehousing using self-maintainable views
– Gupta, Jagadish, et al.
- 1996
|
|
3
|
Yehoshua Sagiv. Query optimization by predicate move-around
– Levy, Mumick
- 1994
|
|
3
|
Foundations of aggregation constraints. An early version appeared
– Ross, Srivastava, et al.
- 1995
|
|
1
|
Yehoshua Sagiv. Reasoning with aggregation constraints
– Levy, Mumick
- 1996
|