Query optimization in compressed database systems
Authors:
Open Access
- 1 May 2001
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGMOD Record
- Vol. 30 (2) , 271-282
Abstract
Over the last decades, improvements in CPU speed have outpaced improvements in main memory and disk access rates by orders of magnitude, enabling the use of data compression techniques to improve the performance of database systems. Previous work describes the benefits of compression for numerical attributes, where data is stored in compressed format on disk. Despite the abundance of string-valued attributes in relational schemas there is little work on compression for string attributes in a database context. Moreover, none of the previous work suitably addresses the role of the query optimizer: During query execution, data is eithereagerlydecompressed when it is read into main memory, or datalazilystays compressed in main memory and is decompressed on demand onlyIn this paper, we present an effective approach for database compression based on lightweight, attribute-level compression techniques. We propose a IIierarchical Dictionary Encoding strategy that intelligently selects the most effective compression method for string-valued attributes. We show that eager and lazy decompression strategies produce sub-optimal plans for queries involving compressed string attributes. We then formalize the problem of compression-aware query optimization and propose one provably optimal and two fast heuristic algorithms for selecting a query plan for relational schemas with compressed attributes; our algorithms can easily be integrated into existing cost-based query optimizers. Experiments using TPC-H data demonstrate the impact of our string compression methods and show the importance of compression-aware query optimization. Our approach results in up to an order speed up over existing approaches.Keywords
This publication has 23 references indexed in Scilit:
- The implementation and performance of compressed databasesACM SIGMOD Record, 2000
- Daytona and the fourth-generation language CymbalACM SIGMOD Record, 1999
- Database compressionACM SIGMOD Record, 1993
- Options in physical database designACM SIGMOD Record, 1993
- Predicate migrationACM SIGMOD Record, 1993
- Query processing in main memory database management systemsACM SIGMOD Record, 1986
- Data compression on a database systemCommunications of the ACM, 1985
- A practitioner's guide to data base compression tutorialInformation Systems, 1983
- A universal algorithm for sequential data compressionIEEE Transactions on Information Theory, 1977
- On the Complexity of Finite SequencesIEEE Transactions on Information Theory, 1976