REVIEW 4 major objections 7 minor 2 references
The Selection Problem in Multi-Query Optimization: a Comprehensive Survey
T0 review · 4 major / 7 minor · reviewed 2026-08-11 · deepseek-v4-flash
Pith's one-line read A linear tree traversal can replace the exponential optimization step in state-of-the-art view selection algorithms, exponentially accelerating them.
desk verdict A useful survey and a plausible new complexity result, but the headline exponential-acceleration claim rests on a proof that does not handle OR-nodes; referee time is warranted but the theorem needs to be restricted or rewritten. read the letter →
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
The reading
What carries the argument
The load-bearing mechanism is the bottom-up recurrence $\operatorname{max\ subtree\ benefit}[node] = \max(\sum_{child} \operatorname{max\ subtree\ benefit}[child],\ node.reuse\ benefit)$ (Algorithm 2). It assumes benefit decomposes as $B'_c \cdot n_{reuses}(c)$ with independent single-reuse benefit $B'_c$, and it converts the selection-usage subproblem from an integer linear program with variables for every query-candidate pair into a tree traversal computing the optimal reuse assignment in linear time.
What would settle it
Build a small expression forest with a shared subexpression reached from two different computation flows (e.g., a diamond-shaped DAG where a filtered node feeds two join branches). Run Algorithm 2 and check whether its computed reuse assignment matches the exhaustive enumeration of all reuse choices for every budget; if the DP overcounts or routes a reuse to both flows, the recurrence fails exactly there.
Extended reading notes
Core claim
The paper establishes that candidate selection across view materialization, index selection, and query/plan caching is a single framework, the Candidate Selection Problem, in which candidates are tree nodes and benefits and expenses are weights of computation paths. Its main novel result, Theorem 2, states that the per-query step of deciding how to optimally reuse an already-fixed set of selected candidates — previously formulated as an integer linear program in BigSubs and RL View with a constraint forbidding simultaneous reuse of nested candidates — is computable in polynomial time by a single traversal of the expression forest, so that nested candidates may be reused simultaneously within different computation flows. The proof constructs a bottom-up dynamic programming recurrence: for each node the maximum subtree benefit is the maximum of the sum over children's maximum subtree benefits and the node's own reuse benefit, after which a top-down count of accessing computation flows distributes reuse decisions without conflicts.
Load-bearing premise
The linear-time speed-up depends on the assumption that the total benefit of reusing selected candidates is correctly captured by the local recurrence comparing the sum of children's best subtree benefits to the node's own reuse benefit, so that benefits decompose additively over independent computation flows with no more than one reuse per flow.
Editorial extensions
If this is right
- The inner optimization loop of BigSubs and RL View, which required solving an exponential ILP with many auxiliary variables, can be replaced by a linear-time tree traversal, yielding an exponential speed-up of each iteration.
- Allowing simultaneous reuse of nested candidates (when they lie on different computation flows) can increase the achievable benefit relative to the original ILP-based formulation, which forbade all such pairs.
- The same tree-structure argument transfers directly to other Candidate Selection Problem instances, such as index selection under a space budget and plan caching with compressed tree storage, because their candidates are also trees.
- More iterations of the selection loop become affordable within a fixed time budget, which improves the quality of the final selected candidate set in the learned and randomized algorithms.
Reading between the lines
- The linear-time recurrence likely extends well beyond view selection: any selection problem with tree-ordered candidates and additive benefits (index selection over stored plans, compressed plan caches) should inherit the same speed-up with the same local DP, provided an AND-DAG-like flow semantics holds.
- A key open point is the correctness boundary of the recurrence on expression forests with shared subexpressions (DAGs) and OR-arcs; if a node can be reached from multiple computation flows, the sum-over-children rule could overcount benefit in ways the paper's sketch does not yet address.
- A concrete test would be to implement Algorithm 2 in BigSubs/RL View, compare the final selected-benefit and workload runtime to the ILP version on the original benchmarks: the paper claims the same or better benefit with drastically shorter iteration time.
- The paper's claim of exponential acceleration presumes that replacing the ILP step does not change what the flip function and learned model observe; if the stats vector differs materially across iterations, existing RL-policy convergence behavior may shift.
Signed reviews
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper proposes a unified 'Candidate Selection Problem' (CSP) covering view materialization, index selection, query caching, and plan caching; it surveys heuristic, randomized, and machine-learning selection algorithms, and it contributes two original formal results: NP-hardness of the View Selection Problem over binary AND-DAGs (Theorem 1) and a polynomial-time bottom-up procedure for the reuse step of the BigSubs/RL View algorithms (Theorem 2), from which the abstract derives a claim of exponential acceleration of some state-of-the-art selection algorithms. The survey portion is broad and well organized, but the original results carry the paper's strongest claims and are not fully established as stated.
Significance. If the theorems were correct, the paper would provide both a useful organizing framework and a substantial algorithmic improvement: the unified CSP formulation and the tree-structure-based benefit analysis could enable technique transfer across view/index selection and caching, and a polynomial-time reuse step would be a real advance over the ILP-based feedback loop in BigSubs/RL View. The survey classification and literature coverage are genuine contributions independent of those claims. I found no circular reasoning or fitted-parameter issues; the new results are presented as derivations from stated definitions and prior complexity results, though with proof gaps. The significance is therefore conditional: the acceleration claim needs either a corrected proof restricted to the cases where it holds, or an explicit downgrade to a conjecture.
major comments (4)
- [6.2 (Theorem 2, Algorithm 2)] The recurrence max_subtree_benefit[node] = max(total_child_benefit, node.reuse_benefit) sums benefits over all children. This is only valid for AND nodes. In the paper's own representation (Section 4.1), an eq-node with multiple children represents OR alternatives, so summing child benefits counts benefits from mutually exclusive computation paths. For example, an OR node R with two alternative children A and B, each with a one-use benefit of 100, receives total_child_benefit(R) = 200 and may have both A and B marked for reuse, while any valid execution obtains at most 100. The proof sketch in Section 6.2 does not define arc-type handling, does not state whether node.reuse_benefit is a per-use or total quantity, and gives no induction for DAGs with shared subexpressions; the reverse-topological counting step is described informally. Since Theorem 2 is the basis of the abstract's 'exponentially accelerate' claim, that claim is not established as stated. The theorem should be restricted to AND-DAG/tree inputs, or the recurrence should be revised (e.g., taking a max over OR alternatives), with a formal correctness proof.
- [3.6 (Theorem 1)] The proof reduces Knapsack to VSP by constructing a join of n tables with filters and asserting that any candidate other than the filtered tables has size at least min_i(wi)^2, so it cannot fit in the budget W. This relies on an unstated multiplicative (cross-product) model of join output sizes and on specific cost assumptions for reading and filtering. None of these assumptions appears in the theorem statement or in the definition of the View Selection Problem. The theorem statement should include the cost model explicitly, and the scaling argument used to ensure min_i(wi)^2 > W should be shown to preserve the Knapsack optimum. As written, the NP-hardness claim is not fully supported.
- [7.1 (Challenges and Open Problems)] The open-problems section states that 'the question of existence of an exact polynomial solution' for AND-DAG is still open, citing Gupta and Mumick (2005) and Karloff and Mihail (1999). This contradicts Theorem 1, which states NP-hardness for binary AND-DAG. Because binary AND-DAG is a subclass of AND-DAG, NP-hardness for the subclass implies NP-hardness for the general class under the same cost model. The authors should either remove this contradiction or explain precisely which restricted variant remains open.
- [6.1-6.2 (BigSubs/RL View acceleration)] The paper claims that replacing the ILP feedback in Algorithm 1 with Algorithm 2 'exponentially accelerates' BigSubs and RL View while improving quality. Algorithm 2 computes a maximum subtree benefit and marks nodes where max_subtree_benefit[node] == node.reuse_benefit, but the proof does not show how the per-candidate reuse counts n_reuses_c and the stats vector are derived from this marking, especially for shared nodes, nor does it show that the result is equivalent to the ILP feedback objective used in the original algorithms. No experimental results or benchmarks are presented to substantiate the quality claim. At minimum, the authors should give a formal statement that the DP solves the per-query reuse optimization problem solved by the ILP (with the nesting constraint removed), and ideally an empirical comparison on workloads used by BigSubs and RL View.
minor comments (7)
- [3.1] The heading 'Multi-Query Optmization' contains a typo; it should read 'Optimization'.
- [3.3] The text contains the duplicated phrase 'Executing a workload workload with all possible sets of selected candidates is infeasible'.
- [4.3] The heading 'How are contraints modeled?' contains a typo; it should read 'constraints'.
- [4.1 (Example 7)] Example 7 refers to 'a workload of two queries sigma_A(T1) and sigma_B(T1) given in Figure 1', but Figure 1 illustrates the join example from Section 3.1; the intended reference appears to be Figure 7.
- [6.2 (Algorithm 2)] Algorithm 2 is declared with 'Input: Tree structure with nodes as candidates', while Theorem 2 refers to an expression forest; the terminology should be aligned, since the correctness issue over DAGs and OR-arcs depends on this distinction.
- [5.2.1] The sentence 'the view is not / is selected because without an index its benefit insufficient' appears garbled and should be rewritten.
- [6.1 (Algorithm 1)] In the comment inside Algorithm 1, 'flip f unction' has an erroneous space and should be 'flip function'.
Circularity Check
No circularity: the new results derive from the paper's stated models and external complexity results; the OR-arc concern is a soundness gap, not a circular step.
full rationale
I found no load-bearing circular step. The paper's principal new technical claims are Theorem 1, which proves AND-DAG VSP NP-hardness by a self-contained knapsack reduction, and Theorem 2, which proposes Algorithm 2 as a polynomial-time substitute for the ILP reuse step. Theorem 2 is not derived by fitting a parameter or by renaming an input; it is an algorithmic claim whose proof sketch relies on the benefit decomposition in Equation (1). That decomposition is stated as a modeling assumption for tree/AND-DAG structures, not as a consequence of Theorem 2. The unified Candidate Selection Problem is an organizational abstraction, not a prediction that is forced by construction. The skeptical objection about OR-arcs is a correctness or generality gap: Algorithm 2 sums benefits over all children, whereas OR-arcs represent alternative computation paths, so the proof does not establish the claimed optimality for general AND-OR-DAGs. But an unproven or even incorrect generalization is not circular reasoning. The paper also contains no self-citations and no fitted values renamed as predictions; all cited complexity and algorithmic results are external (Gupta and Mumick, Karloff and Mihail, Harinarayan et al., Jindal et al., Yuan et al.). A soundness flaw in the proof of Theorem 2 should be reported as a correctness risk, not as circularity.
Assumptions & free parameters
assumptions (5)
- domain assumption Benefit of a candidate c can be decomposed as B'_c * n_reuses_c(C) (Equation 1).
- domain assumption The nature of candidates is irrelevant; only representation and benefit/expense computation matter.
- domain assumption Candidates can be represented as tree nodes and benefits/expenses as path weights.
- ad hoc to paper Join output sizes in Theorem 1 obey a multiplicative (cross-product) model, so any partial join has size at least min_i(wi)^2.
- standard math Knapsack is NP-hard and greedy approximation bounds (63% and 47%) hold.
invented entities (2)
-
Candidate Selection Problem (CSP)
-
Compressed expression forest F'
Cite this review
Pith. "Pith review of The Selection Problem in Multi-Query Optimization: a Comprehensive Survey." pith.science (2026). https://pith.science/paper/HB45J3FX
@misc{pith2026241211828,
author = {Pith},
title = {Pith review of: The Selection Problem in Multi-Query Optimization: a Comprehensive Survey},
year = {2026},
howpublished = {\url{https://pith.science/paper/HB45J3FX}},
note = {Machine review of arXiv:2412.11828}
}
read the original abstract
View materialization, index selection, and plan caching are well-known techniques for optimization of query processing in database systems. The essence of these tasks is to select and save a subset of the most useful candidates (views/indexes/plans) for reuse within given space/time budget constraints. In this paper, we propose a unified view on these selection problems. We make a detailed analysis of the root causes of their complexity and summarize techniques to address them. Our survey provides a modern classification of selection algorithms known in the literature, including the latest ones based on Machine Learning. We provide a ground for reuse of the selection techniques between different optimization scenarios and highlight challenges and promising directions in the field. Based on our analysis we derive a method to exponentially accelerate some of the state-of-the-art selection algorithms.
Figures
Figures from the paper (7 more)
Reference graph
Works this paper leans on
-
[1994]
In Proceedings of the 20th International Conference on Very Large Data Bases (VLDB ’94)
Fast, Randomized Join-Order Selection - Why Use Transformations?. In Proceedings of the 20th International Conference on Very Large Data Bases (VLDB ’94) . Morgan Kaufmann Publishers Inc., San Francisco, CA, USA, 85–95. 33 [Ghosh et al.(2002)] Antara Ghosh, Jignashu Parikh, Vibhuti S Sengar, and Jayant R Haritsa. 2002. Plan selection based on query cluste...
arXiv 2002
-
[2008]
Lecture Notes in Computer Science 5022 (2008), 121–132
Parallel simulated annealing for materialized view selection in data warehousing envi- ronments. Lecture Notes in Computer Science 5022 (2008), 121–132. [Diwan et al.(2006)] AA Diwan, S Sudarshan, and Dilys Thomas. 2006. Scheduling and caching in multi-query optimization. In International Conference on Management of Data COMAD, Delhi, India. [Galindo-Lega...
work page 2008
Reviewed August 11, 2026 · model on record in the stance chip above.
Discussion (0). Continue with ORCID to comment.