
6
Online Updates on Data Warehouses via Judicious Use
of Solid-State Storage
MANOS ATHANASSOULIS,
´
Ecole Polytechnique F
´
ed
´
eraledeLausanne
SHIMIN CHEN, Chinese Academy of Sciences
ANASTASIA AILAMAKI,
´
Ecole Polytechnique F
´
ed
´
eraledeLausanne
PHILIP B. GIBBONS, Intel Labs, Pittsburgh
RADU STOICA,
´
Ecole Polytechnique F
´
ed
´
eraledeLausanne
Data warehouses have been traditionally optimized for read-only query performance, allowing only offline
updates at night, essentially trading off data freshness for performance. The need for 24x7 operations in
global markets and the rise of online and other quickly reacting businesses make concurrent online up-
dates increasingly desirable. Unfortunately, state-of-the-art approaches fall short of supporting fast analysis
queries over fresh data. The conventional approach of performing updates in place can dramatically slow
down query performance, while prior proposals using differential updates either require large in-memory
buffers or may incur significant update migration cost.
This article presents a novel approach for supporting online updates in data warehouses that overcomes
the limitations of prior approaches by making judicious use of available SSDs to cache incoming updates.
We model the problem of query processing with differential updates as a type of outer join between the data
residing on disks and the updates residing on SSDs. We present MaSM algorithms for performing such joins
and periodic migrations, with small memory footprints, low query overhead, low SSD writes, efficient in-place
migration of updates, and correct ACID support. We present detailed modeling of the proposed approach,
and provide proofs regarding the fundamental properties of the MaSM algorithms. Our experimentation
shows that MaSM incurs only up to 7% overhead both on synthetic range scans (varying range size from
4KB to 100GB) and in a TPC-H query replay study, while also increasing the update throughput by orders
of magnitude.
Categories and Subject Descriptors: H.2.4 [Database Management]: Systems—Query processing; H.2.7
[Database Management]: Database Administration—Data warehouse and repository
General Terms: Algorithms, Design, Performance
Additional Key Words and Phrases: Materialized sort merge, online updates, data warehouses, SSD
An earlier version of this article appeared in the 2011 Proceedings of the ACM SIGMOD International
Conference on Management of Data.
M. Athanassoulis is currently affiliated with Harvard University. R. Stoica is currently affiliated with IBM
Research, Zurich.
This work was partially supported by an ESF EurYI award (FN 511.261), NSF funds, an EU-funded FP7
project (grant no. 317858), and the Intel Science & Technology Center for Cloud Computing. S. Chen is
supported by the CAS Hundred Talents program and by NSFC Innovation Research Group no. 61221062.
Authors’ addresses: M. Athanassoulis (corresponding author), School of Engineering and Applied Sciences,
Harvard University, Cambridge, MA 02138; email: manos@seas.harvard.edu; S. Chen (corresponding au-
thor), State Key Laboratory of Computer Architecture, Institute of Computing Technology, Chinese Academy
of Sciences, no. 6 Kexueyuan South Road, Zhongguancun, Haidian District Beijing, China; A. Ailamaki,
School of Computer and Communication Sciences,
´
Ecole Polytechnique F
´
ed
´
erale de Lausanne, Lausanne,
Switzerland; P. B. Gibbons, Intel Labs Pittsburgh and Carnegie Mellon University, 5000 Forbes Avenue,
Pittsburgh, PA 15213; R. Stoica, IBM Research Zurich, Saumerstrasse 4, 8803 Ruschlikon, Switzerland.
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted
without fee provided that copies are not made or distributed for profit or commercial advantage and that
copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by
others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to
post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions
from Permissions@acm.org.
c
2015 ACM 0362-5915/2015/03-ART6 $15.00
DOI: http://dx.doi.org/10.1145/2699484
ACM Transactions on Database Systems, Vol. 40, No. 1, Article 6, Publication date: March 2015.
评论