Provenance-Aware Query Optimization
Authors:
- Xing NiuXNXing Niu
- Raghav KapoorRKRaghav Kapoor
- Boris GlavicBGBoris Glavic
- Dieter GawlickDGDieter Gawlick
- Zhen Hua LiuZLZhen Hua Liu
- Vasudha KrishnaswamyVKVasudha Krishnaswamy
- Venkatesh RadhakrishnanVRVenkatesh Radhakrishnan
- 1 April 2017
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 473-484
Abstract
Data provenance is essential for debugging query results, auditing data in cloud environments, and explaining outputs of Big Data analytics. A well-established technique is to represent provenance as annotations on data and to instrument queries to propagate these annotations to produce results annotated with provenance. However, even sophisticated optimizers are often incapable of producing efficient execution plans for instrumented queries, because of their inherent complexity and unusual structure. Thus, while instrumentation enables provenance support for databases without requiring any modification to the DBMS, the performance of this approach is far from optimal. In this work, we develop provenancespecific optimizations to address this problem. Specifically, we introduce algebraic equivalences targeted at instrumented queries and discuss alternative, equivalent ways of instrumenting a query for provenance capture. Furthermore, we present an extensible heuristic and cost-based optimization (CBO) framework that governs the application of these optimizations and implement this framework in our GProM provenance system. Our CBO is agnostic to the plan space shape, uses a DBMS for cost estimation, and enables retrofitting of optimization choices into existing code by adding a few LOC. Our experiments confirm that these optimizations are highly effective, often improving performance by several orders of magnitude for diverse provenance tasks.Keywords
This publication has 18 references indexed in Scilit:
- Query shredding2014
- Collaborative data sharing via update exchange and provenanceACM Transactions on Database Systems, 2013
- Using SQL for Efficient Generation and Querying of Provenance Information2013
- Semiring-annotated dataACM SIGMOD Record, 2012
- Declarative Datalog Debugging for Mere Mortals2012
- LogicBlox, Platform and Language: A TutorialLecture Notes in Computer Science, 2012
- Let SQL drive the XQuery workhorse (XQuery join graph isolation)2010
- Efficient provenance storage over nested data collections2009
- Provenance for nested subqueries2009
- The Volcano optimizer generator: extensibility and efficient search2002