Rewriting with Acyclic Queries: Mind Your Head
Open Access
- 29 November 2023
- journal article
- research article
- Published by Centre pour la Communication Scientifique Directe (CCSD) in Logical Methods in Computer Science
- Vol. ume 19, Is (4)
Abstract
The paper studies the rewriting problem, that is, the decision problem whether, for a given conjunctive query $Q$ and a set $\mathcal{V}$ of views, there is a conjunctive query $Q'$ over $\mathcal{V}$ that is equivalent to $Q$, for cases where the query, the views, and/or the desired rewriting are acyclic or even more restricted. It shows that, if $Q$ itself is acyclic, an acyclic rewriting exists if there is any rewriting. An analogous statement also holds for free-connex acyclic, hierarchical, and q-hierarchical queries. Regarding the complexity of the rewriting problem, the paper identifies a border between tractable and (presumably) intractable variants of the rewriting problem: for schemas of bounded arity, the acyclic rewriting problem is NP-hard, even if both $Q$ and the views in $\mathcal{V}$ are acyclic or hierarchical. However, it becomes tractable if the views are free-connex acyclic (i.e., in a nutshell, their body is (i) acyclic and (ii) remains acyclic if their head is added as an additional atom).
Keywords
All Related Versions
This publication has 27 references indexed in Scilit:
- Semantic Optimization in Tractable Classes of Conjunctive QueriesACM SIGMOD Record, 2017
- Dichotomies for Queries with Negation in Probabilistic DatabasesACM Transactions on Database Systems, 2016
- Unifying and Strengthening Hardness for Dynamic Problems via the Online Matrix-Vector Multiplication Conjecture2015
- Size Bounds for Factorised Representations of Query ResultsACM Transactions on Database Systems, 2015
- On Acyclic Conjunctive Queries and Constant Delay Enumeration2007
- The dichotomy of conjunctive queries on probabilistic structures2007
- View-Based Query Processing: On the Relationship Between Rewriting, Answering and LosslessnessLecture Notes in Computer Science, 2004
- Answering queries using views: A surveyThe VLDB Journal, 2001
- MiniCon: A scalable algorithm for answering queries using viewsThe VLDB Journal, 2001
- Conjunctive query containment revisitedTheoretical Computer Science, 2000