Efficient Answering of Historical What-if Queries
Felix S. Campbell, Bahareh Sadat Arab, Boris Glavic
Abstract
We introduce historical what-if queries, a novel type of what-if analysis that determines the effect of a hypothetical change to the transactional history of a database. For example, "how would revenue be affected if we would have charged an additional $6 for shipping?" Such queries may lead to more actionable insights than traditional what-if queries as their results can be used to inform future actions, e.g., increasing shipping fees. We develop efficient techniques for answering historical what-if queries, i.e., determining how a modified history affects the current database state. Our techniques are based on reenactment, a replay technique for transactional histories. We optimize this process using program and data slicing techniques that determine which updates and what data can be excluded from reenactment without affecting the result. Using an implementation of our techniques in Mahif (a Middleware for Answering Historical what-IF queries) we demonstrate their effectiveness experimentally.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext c4d0ba08-430e-4951-aa0c-ca54dcd14d8eCited by top-tier papers4
- R3: Record-Replay-Retroaction for Database-Backed ApplicationsQian Li, Peter Kraft, Michael J. Cafarella, Çagatay Demiralp et al.VLDB 2023 · 10 citations
- LIT: Lightning-fast In-memory Temporal IndexingGeorge Christodoulou, Panagiotis Bouros, Nikos MamoulisSIGMOD 2024 · 10 citations
- Stochastic SketchRefine: Scaling In-Database Decision-Making under Uncertainty to Millions of TuplesRiddho R. Haque, Anh L. Mai, Matteo Brucato, Azza Abouzied et al.VLDB 2025 · 1 citation
- Ultraverse: An Efficient What-if Analysis Framework for Software Applications Interacting with Database SystemsRonny Ko, Chuan Xiao, Makoto Onizuka, Zhiqiang Lin et al.SIGMOD 2025 · 1 citation
Related papers
- HypeR: Hypothetical Reasoning With What-If and How-To Queries Using a Probabilistic Causal ApproachSainyam Galhotra, Amir Gilad, Sudeepa Roy, Babak SalimiSIGMOD 2022 · 15 citations
- Automating and Optimizing Data-Centric What-If Analyses on Native Machine Learning PipelinesStefan Grafberger, Paul Groth, Sebastian SchelterSIGMOD 2023 · 18 citations
- FaDE: More Than a Million What-ifs Per SecondHaneen Mohammed, Eugene Wu, Alexander Yao, Charlie Summers et al.VLDB 2025 · 6 citations
- Modeling Shifting Workloads for Learned Database SystemsPeizhi Wu, Zachary G. IvesSIGMOD 2024 · 12 citations
- TiQuE: Improving the Transactional Performance of Analytical Systems for True Hybrid WorkloadsNuno Faria, José Pereira, Ana Nunes Alonso, Ricardo Vilaça et al.VLDB 2023 · 6 citations
