| Optimizing complex queries with multiple relation instances |
| Full text |
Pdf
(616 KB)
|
Source
|
International Conference on Management of Data
archive
Proceedings of the 2008 ACM SIGMOD international conference on Management of data
table of contents
Vancouver, Canada
SESSION: Research Session 12: Query Optimization
table of contents
Pages 525-538
Year of Publication: 2008
ISBN:978-1-60558-102-6
|
|
Authors
|
|
Yu Cao
|
National University of Singapore, Singapore, Singapore
|
|
Gopal C. Das
|
National University of Singapore, Singapore, Singapore
|
|
Chee-Yong Chan
|
National University of Singapore, Singapore, Singapore
|
|
Kian-Lee Tan
|
National University of Singapore, Singapore, Singapore
|
|
| Sponsors |
|
| Publisher |
|
| Bibliometrics |
Downloads (6 Weeks): 22, Downloads (12 Months): 239, Citation Count: 0
|
|
|
ABSTRACT
Today's query processing engines do not take advantage of the multiple occurrences of a relation in a query to improve performance. Instead, each instance is treated as a distinct relation and has its own independent table access method. In this paper, we present MAPLE, a Multi-instance-Aware PLan Evaluation engine that enables multiple instances of a relation to share one physical scan (called SharedScan) with limited buffer space. During execution, as SharedScan pulls a tuple for any instance, that tuple is also pushed to the buffers of other instances with matching predicates. To avoid buffer overflow, a novel interleaved execution strategy is proposed: whenever an instance's buffer becomes full, the execution is temporarily switched to a drainer (an ancestor blocking operator of the instance) to consume all the tuples in the buffer. Thus, the execution is interleaved between normal processing and drainers. We also propose a cost-based approach to generate a plan to maximize the shared scan benefit as well as to avoid interleaved execution deadlocks. MAPLE is light-weight and can be easily integrated into existing RDBMS executors. We have implemented MAPLE in PostgreSQL, and our experimental study on the TPC-DS benchmark shows significant reduction in execution time.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
1
|
Microsoft SQL Server Library. http://msdn2.microsoft.com/en-us/library/bb545450.aspx.
|
| |
2
|
PostgreSQL. http://www.postgresql.org/.
|
| |
3
|
TPC BENCHMARK Decision Support. http://www.tpc.org/tpcds/.
|
 |
4
|
|
| |
5
|
|
| |
6
|
Latha S. Colby , Richard L. Cole , Edward Haslam , Nasi Jazayeri , Galt Johnson , William J. McKenna , Lee Schumacher , David Wilhite, Redbrick Vista: Aggregate Computation and Management, Proceedings of the Fourteenth International Conference on Data Engineering, p.174-177, February 23-27, 1998
|
| |
7
|
|
 |
8
|
|
 |
9
|
|
 |
10
|
|
| |
11
|
C. A. Lang, B. Bhattacharjee, T. Malkemus, S. Padmanabhan, and K. Wong. Increasing buffer-locality for multiple relational table scans through grouping and throttling. In ICDE, pages 1136--1145, 2007.
|
| |
12
|
|
 |
13
|
Elizabeth J. O'Neil , Patrick E. O'Neil , Gerhard Weikum, The LRU-K page replacement algorithm for database disk buffering, Proceedings of the 1993 ACM SIGMOD international conference on Management of data, p.297-306, May 25-28, 1993, Washington, D.C., United States
|
 |
14
|
Prasan Roy , S. Seshadri , S. Sudarshan , Siddhesh Bhobe, Efficient and extensible algorithms for multi query optimization, Proceedings of the 2000 ACM SIGMOD international conference on Management of data, p.249-260, May 15-18, 2000, Dallas, Texas, United States
|
 |
15
|
|
| |
16
|
K. Wilkinson, C. Sayers, H. A. Kuno, and D. Reynolds. Efficient rdf storage and retrieval in jena2. In SWDB, pages 131--150, 2003.
|
 |
17
|
Yihong Zhao , Prasad M. Deshpande , Jeffrey F. Naughton , Amit Shukla, Simultaneous optimization and evaluation of multiple dimensional queries, Proceedings of the 1998 ACM SIGMOD international conference on Management of data, p.271-282, June 01-04, 1998, Seattle, Washington, United States
|
 |
18
|
|
| |
19
|
|
|