Skip to main content
QUICK REVIEW

[Paper Review] Skew in Parallel Query Processing

Paul Beame, Paraschos Koutris|arXiv (Cornell University)|Jan 9, 2014
Graph Theory and AlgorithmsComputer Science12 references11 citations
TL;DR

This paper establishes tight communication complexity bounds for computing conjunctive queries in a single-round parallel system with $ p $ servers, under data skew. It introduces a framework using fractional edge packings of the query and residual queries for heavy hitters, proving matching upper and lower bounds (up to polylog $ p $ factors), generalizing prior results to skewed data and providing the first formal lower bounds for skew-aware parallel query processing.

ABSTRACT

We study the problem of computing a conjunctive query q in parallel, using p of servers, on a large database. We consider algorithms with one round of communication, and study the complexity of the communication. We are especially interested in the case where the data is skewed, which is a major challenge for scalable parallel query processing. We establish a tight connection between the fractional edge packings of the query and the amount of communication, in two cases. First, in the case when the only statistics on the database are the cardinalities of the input relations, and the data is skew-free, we provide matching upper and lower bounds (up to a poly log p factor) expressed in terms of fractional edge packings of the query q. Second, in the case when the relations are skewed and the heavy hitters and their frequencies are known, we provide upper and lower bounds (up to a poly log p factor) expressed in terms of packings of residual queries obtained by specializing the query to a heavy hitter. All our lower bounds are expressed in the strongest form, as number of bits needed to be communicated between processors with unlimited computational power. Our results generalizes some prior results on uniform databases (where each relation is a matching) [4], and other lower bounds for the MapReduce model [1].

Motivation & Objective

  • To address the challenge of data skew in parallel query processing, where heavy hitters cause load imbalance across servers.
  • To establish formal lower bounds on communication cost for computing conjunctive queries in a single-round parallel model.
  • To extend prior work on uniform databases to the more realistic case of skewed data with known heavy hitters and their frequencies.
  • To provide matching upper and lower bounds (up to polylog $ p $ factors) for communication complexity using fractional edge packings and residual query packings.
  • To generalize prior results from the MapReduce and MPC models to handle skewed data and provide stronger theoretical guarantees.

Proposed method

  • The authors model the problem in a single-round communication model with $ p $ servers, assuming knowledge of input relation cardinalities and heavy hitter identities and frequencies.
  • They define a communication cost based on the number of bits transmitted between servers, assuming unlimited computational power.
  • For skew-free data, the communication cost is bounded using fractional edge packings of the query's hypergraph representation.
  • For skewed data, the cost is bounded using fractional edge packings of residual queries formed by specializing the original query to each heavy hitter.
  • The HyperCube algorithm is used as a baseline for constructing upper bounds, with dimensions optimized via fractional edge packing.
  • Theoretical bounds are derived using duality between fractional edge covers and communication complexity, leveraging optimization over fractional packings.

Experimental results

Research questions

  • RQ1What is the minimum amount of communication required to compute a conjunctive query in one round when data is skewed?
  • RQ2How do heavy hitters affect the communication complexity of parallel query processing, and can this be quantitatively modeled?
  • RQ3Can fractional edge packings of the query or its residual forms provide tight bounds on communication cost in the presence of skew?
  • RQ4How do the bounds from the skew-free case generalize to skewed databases with known heavy hitters?
  • RQ5To what extent do existing models like MapReduce or MPC fail to capture the communication cost under skew, and how can they be extended?

Key findings

  • For skew-free databases, the communication cost is tightly bounded (up to polylog $ p $ factors) by the fractional edge packing of the query's hypergraph.
  • For skewed databases, the communication cost is tightly bounded (up to polylog $ p $ factors) by the fractional edge packing of residual queries obtained by specializing the original query to each heavy hitter.
  • The bounds are both upper and lower, proven in the strongest form: as the number of bits that must be communicated between servers with unlimited computation.
  • The results generalize prior work on uniform databases and extend known lower bounds from the MapReduce model to skewed data.
  • The HyperCube algorithm achieves the upper bound when dimensions are chosen according to the optimal fractional edge packing.
  • The replication rate in MapReduce-style models is bounded below by a function of the fractional edge packing and relation sizes, even when relation sizes differ.

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.