Skip to main content
QUICK REVIEW

[Paper Review] Distribution Policies for Datalog

Bas Ketsman, Aws Albarghouthi|arXiv (Cornell University)|Jan 1, 2016
Advanced Database Systems and QueriesComputer Science1 citations
TL;DR

This paper extends the analysis of parallel-correctness in distributed Datalog evaluation to unions of conjunctive queries (UCQ) and conjunctive queries with negation (CQ¬), showing that while parallel-correctness for UCQ remains in ΠP₂, it becomes coNEXPTIME-complete for CQ¬ due to the need for exponentially large counterexamples. A key contribution is proving that CQ¬ containment is coNEXPTIME-complete, challenging prior assumptions of ΠP₂-completeness under bounded arity.

ABSTRACT

Modern data management systems extensively use parallelism to speed up query processing over massive volumes of data. This trend has inspired a rich line of research on how to formally reason about the parallel complexity of join computation. In this paper, we go beyond joins and study the parallel evaluation of recursive queries. We introduce a novel framework to reason about multi-round evaluation of Datalog programs, which combines implicit predicate restriction with distribution policies to allow expressing a combination of data-parallel and query-parallel evaluation strategies. Using our framework, we reason about key properties of distributed Datalog evaluation, including parallel-correctness of the evaluation strategy, disjointness of the computation effort, and bounds on the number of communication rounds.

Motivation & Objective

  • To extend the theory of parallel-correctness in distributed query evaluation to unions of conjunctive queries (UCQ) and conjunctive queries with negation (CQ¬).
  • To investigate the complexity of parallel-correctness, parallel-soundness, and parallel-completeness under distribution policies for UCQ and CQ¬.
  • To determine whether the containment problem for CQ¬ is harder than previously assumed, particularly under general schemas.
  • To identify conditions under which the high complexity of parallel-correctness for CQ¬ can be reduced, such as fixed schema or bounded arity.
  • To provide new complexity bounds and reductions that transfer lower bounds from containment to parallel-correctness.

Proposed method

  • Extends the valuation-based characterization of parallel-correctness from CQs to UCQs, showing that parallel-correctness remains in ΠP₂.
  • Introduces counterexample-based algorithms for CQ¬, relying on exponentially large counterexamples to establish coNEXPTIME upper bounds.
  • Employs reductions from CQ¬ containment to parallel-correctness (and its variants), proving coNEXPTIME-hardness.
  • Uses a novel reduction from query containment to parallel-correctness to show that CQ¬ containment is coNEXPTIME-complete.
  • Analyzes full conjunctive queries with negation (FCQ¬) and shows that parallel-correctness drops to coNP-complete under fullness constraints.
  • Applies the same reduction techniques to derive complexity bounds for unions of full CQ¬ (UFCQ¬), establishing coNP-completeness.

Experimental results

Research questions

  • RQ1What is the complexity of parallel-correctness for unions of conjunctive queries (UCQ) under arbitrary distribution policies?
  • RQ2How does the presence of negation affect the complexity of parallel-correctness, and can it still be characterized via valuations?
  • RQ3Is the containment problem for conjunctive queries with negation (CQ¬) harder than previously believed, particularly in the absence of arity bounds?
  • RQ4Under what conditions—such as fixed schema or bounded arity—does the complexity of parallel-correctness for CQ¬ drop below coNEXPTIME?
  • RQ5Can the containment problem for CQ¬ be reduced to parallel-correctness, and what does this imply for complexity bounds?

Key findings

  • Parallel-correctness for unions of conjunctive queries (UCQ) remains in ΠP₂, extending the valuation-based characterization from CQs.
  • For conjunctive queries with negation (CQ¬), parallel-correctness is coNEXPTIME-complete, due to the need for exponentially large counterexamples.
  • The containment problem for CQ¬ is coNEXPTIME-complete, which contradicts the previously assumed ΠP₂-completeness under general schemas.
  • When the database schema is fixed or the arity of relations is bounded, parallel-correctness for CQ¬ drops to ΠP₂.
  • For unions of full conjunctive queries with negation (UFCQ¬), parallel-correctness is coNP-complete, significantly reducing complexity.
  • The paper establishes novel reductions from containment in CQ¬ to parallel-correctness, enabling transfer of lower bounds and proving coNEXPTIME-completeness for containment.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.