Good to the Last Bit: Data-Driven Encoding with CodecDB

До последнего бита: кодирование данных на основе данных с помощью CodecDB
Hao Jiang, John Paparrizos, Aaron J. Elmore, Chunwei Liu, Andrew A. Chien, Jihong Ma
2021-06-09

CodecDBTPC-H benchmarkdata-driven encoding selectionencoding-aware columnar databaseencoding-aware query operators
Columnar databases rely on specialized encoding schemes to reduce storage requirements. These encodings also enable efficient in-situ data processing. Nevertheless, many existing columnar databases are encoding-oblivious. When storing the data, these systems rely on a global understanding of the dataset or the data types to derive simple rules for encoding selection. Such rule-based selection leads to unsatisfactory performance. Specifically, when performing queries, the systems always decode data into memory, ignoring the possibility of optimizing access to encoded data. We develop CodecDB, an encoding-aware columnar database, to demonstrate the benefit of tightly-coupling the database design with the data encoding schemes. CodecDB chooses in a principled manner the most efficient encoding for a given data column and relies on encoding-aware query operators to optimize access to encoded data. Storage-wise, CodecDB achieves on average 90% accuracy for selecting the best encoding and improves the compression ratio by up to 40% compared to the state-of-the-art encoding selection solution. Query-wise, CodecDB is on average one order of magnitude faster than the latest open-source and commercial columnar databases on the TPC-H benchmark, and on average 3x faster than a recent research project on the Star-Schema Benchmark (SSB).
1
CodecDB is on average one order of magnitude faster than leading open-source and commercial columnar databases on TPC-H, and 3× faster than a recent research system on SSB.
2
CodecDB selects the best encoding with 90% average accuracy and improves compression ratios by up to 40% over the state-of-the-art selection solution.
3
CodecDB tightly couples columnar database design with data encoding schemes through encoding-aware storage and query processing.
4
CodecDB uses principled, data-driven selection to identify efficient encodings for individual data columns.
5
Encoding-aware query operators allow CodecDB to process encoded data without always decoding it into memory.

CodecDB, an encoding-aware columnar database system

Data-driven selection of column encodings and encoding-aware query processing to improve compression efficiency and query performance

Publication Details
Publication Date
2021-06-09
Journal
Publisher
ISSN
Cited by
46
Access Type
Author Information
Authors
Hao Jiang
John Paparrizos
Aaron J. Elmore
Chunwei Liu
Andrew A. Chien
Jihong Ma
Explore further
Open the scid.ai AI chat with a ready-made request: it will find papers on a similar topic and help build a literature review.
Find similar papers in the chat
Make a presentation
100%