The response time of DSS (decision support system) queries is typically several orders of magnitude higher than the response time of OLTP (online transaction processing) queries. Since DSS queries are often submitted interactively, techniques for reducing their response time are becoming increasingly important. We argue that caching of query results is one such technique particularly well suited to the DSS environment. We have designed a query cache manager for such an environment. The cache manager can lookup query results from the cache either based on an exact query match or using a query split algorithm to efficiently find query results which subsume the submitted query. The cache manager dynamically maintains the cache content by deciding whether a newly generated query result should be admitted to the cache and if so, which query results should be evicted from the cache to free space for the new query result. The decisions are aimed at minimizing the query response time. The decisions are explicitly based on a cost function that considers the execution cost of each query, the size of each query result, the reference frequency to each result, the cost of maintenance of each result due to updates of the base tables, and the frequency of such updates. Experimental evaluation shows that our cache manager can improve performance on TPC-D like workloads.
[1]
Nick Roussopoulos,et al.
The Implementation and Performance Evaluation of the ADMS Query Optimizer: Integrating Query Result Caching and Matching
,
1994,
EDBT.
[2]
Jeffrey F. Naughton,et al.
Caching multidimensional queries using chunks
,
1998,
SIGMOD '98.
[3]
Jennifer Widom,et al.
View maintenance in a warehousing environment
,
1995,
SIGMOD '95.
[4]
W. H. Inmon,et al.
Building the data warehouse
,
1992
.
[5]
Venky Harinarayan,et al.
Implementing Data Cubes E ciently
,
1996
.
[6]
Jian Yang,et al.
Algorithms for Materialized View Design in Data Warehousing Environment
,
1997,
VLDB.
[7]
Jeffrey D. Ullman,et al.
Implementing data cubes efficiently
,
1996,
SIGMOD '96.
[8]
Elena Baralis,et al.
Materialized Views Selection in a Multidimensional Database
,
1997,
VLDB.
[9]
Kyuseok Shim,et al.
Optimizing queries with materialized views
,
1995,
Proceedings of the Eleventh International Conference on Data Engineering.
[10]
Peter Scheuermann,et al.
WATCHMAN : A Data Warehouse Intelligent Cache Manager
,
1996,
VLDB.
[11]
Per-Åke Larson,et al.
Eager Aggregation and Lazy Aggregation
,
1995,
VLDB.
[12]
Ashish Gupta,et al.
Aggregate-Query Processing in Data Warehousing Environments
,
1995,
VLDB.