Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
article

Reconcilable Differences

Published: 01 August 2011 Publication History

Abstract

In this paper we study a problem motivated by the management of changes in databases. It turns out that several such change scenarios, e.g., the separately studied problems of view maintenance (propagation of data changes) and view adaptation (propagation of view definition changes) can be unified as instances of query reformulation using views provided that support for the relational difference operator exists in the context of query reformulation. Exact query reformulation using views in positive relational languages is well understood, and has a variety of applications in query optimization and data sharing. Unfortunately, most questions about queries become undecidable in the presence of difference (or negation), whether we use the foundational set semantics or the more practical bag semantics.
We present a new way of managing this difficulty by defining a novel semantics, ℤ-relations, where tuples are annotated with positive or negative integers. ℤ-relations conveniently represent data, insertions, and deletions in a uniform way, and can apply deletions with the union operator (deletions are tuples with negative counts). We show that under ℤ-semantics relational algebra (**image**) queries have a normal form consisting of a single difference of positive queries, and this leads to the decidability of their equivalence. We provide a sound and complete algorithm for reformulating **image** queries, including queries with difference, over ℤ-relations. Additionally, we show how to support standard view maintenance and view adaptation over set or bag semantics, through an excursion into the ℤ-semantics setting. Our algorithm turns out to be sound and complete also for bag semantics, albeit necessarily only for a subclass of **image**. This subclass turns out to be quite large and covers generously the applications of interest to us. We also show a subclass of **image** where reformulation and evaluation under ℤ-semantics can be combined with duplicate elimination to obtain the answer under set semantics. We investigate related complexity questions, and we also extend our results to queries with built-in predicates.

Cited By

View all

Recommendations

Comments

Information & Contributors

Information

Published In

cover image Theory of Computing Systems
Theory of Computing Systems  Volume 49, Issue 2
August 2011
340 pages

Publisher

Springer-Verlag

Berlin, Heidelberg

Publication History

Published: 01 August 2011

Author Tags

  1. Query optimization
  2. Query reformulation
  3. View adaptation

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)0
  • Downloads (Last 6 weeks)0
Reflects downloads up to 30 Jan 2025

Other Metrics

Citations

Cited By

View all
  • (2024)DBSP: Incremental Computation on Streams and Its Applications to DatabasesACM SIGMOD Record10.1145/3665252.366527153:1(87-95)Online publication date: 14-May-2024
  • (2023)DBSP: Automatic Incremental View Maintenance for Rich Query LanguagesProceedings of the VLDB Endowment10.14778/3587136.358713716:7(1601-1614)Online publication date: 8-May-2023
  • (2017)Provenance analysis for FOL model checkingACM SIGLOG News10.1145/3051528.30515334:1(24-36)Online publication date: 9-Feb-2017
  • (2017)The Semiring Framework for Database ProvenanceProceedings of the 36th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems10.1145/3034786.3056125(93-99)Online publication date: 9-May-2017
  • (2016)iOLAPProceedings of the 2016 International Conference on Management of Data10.1145/2882903.2915240(1347-1361)Online publication date: 26-Jun-2016
  • (2015)Live programming in the LogicBlox systemProceedings of the VLDB Endowment10.14778/2824032.28240758:12(1782-1791)Online publication date: 1-Aug-2015
  • (2014)Classification of annotation semirings over containment of conjunctive queriesACM Transactions on Database Systems10.1145/255652439:1(1-39)Online publication date: 6-Jan-2014
  • (2014)Why-provenance information for RDF, rules, and negationAnnals of Mathematics and Artificial Intelligence10.1007/s10472-013-9396-070:3(221-277)Online publication date: 1-Mar-2014
  • (2012)Semiring-annotated dataACM SIGMOD Record10.1145/2380776.238077841:3(5-14)Online publication date: 5-Oct-2012

View Options

View options

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media