Lune

SIGMOD2022Top-tier venue

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 Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. R3: Record-Replay-Retroaction for Database-Backed ApplicationsQian Li, Peter Kraft, Michael J. Cafarella, Çagatay Demiralp et al.VLDB 2023 · 10 citations
  2. LIT: Lightning-fast In-memory Temporal IndexingGeorge Christodoulou, Panagiotis Bouros, Nikos MamoulisSIGMOD 2024 · 10 citations
  3. 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
  4. 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

  1. 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
  2. Automating and Optimizing Data-Centric What-If Analyses on Native Machine Learning PipelinesStefan Grafberger, Paul Groth, Sebastian SchelterSIGMOD 2023 · 18 citations
  3. FaDE: More Than a Million What-ifs Per SecondHaneen Mohammed, Eugene Wu, Alexander Yao, Charlie Summers et al.VLDB 2025 · 6 citations
  4. Modeling Shifting Workloads for Learned Database SystemsPeizhi Wu, Zachary G. IvesSIGMOD 2024 · 12 citations
  5. 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
Dusk over the sea between two cliffs drawn in fine vertical lines