DBLOMay 13

Work-Efficient Query Evaluation in Constant Time with PRAMs

arXiv:2301.0817824.73 citationsh-index: 41
Predicted impact top 59% in DB · last 90 daysOriginality Incremental advance
AI Analysis

For database researchers, it shows that constant-time parallel query evaluation can be made work-efficient for important query classes, though with a slight overhead.

The paper studies constant-time query evaluation on CRCW PRAMs, aiming for work efficiency. It presents algorithms for acyclic, semijoin, and worst-case optimal join queries that achieve weakly work-efficient constant-time evaluation, with work O(T^{1+ε}) compared to optimal sequential time T.

The article studies query evaluation in parallel constant time in the CRCW PRAM model. While it is well-known that all relational algebra queries can be evaluated in constant time on an appropriate CRCW PRAM model, this article is interested in the efficiency of evaluation algorithms, that is, in the number of processors or, asymptotically equivalent, in the work. Naive evaluation in the parallel setting results in huge (polynomial) bounds on the work of such algorithms and in presentations of the result sets that can be extremely scattered in memory. The article discusses some obstacles for constant-time PRAM query evaluation. It presents algorithms for relational operators and explores three settings, in which efficient sequential query evaluation algorithms exist: acyclic queries, semijoin algebra queries, and join queries -- the latter in the worst-case optimal framework. Under mild assumptions -- that data values are numbers of polynomial size in the size of the database or that the relations of the database are suitably sorted -- constant-time algorithms are presented that are weakly work-efficient in the sense that work $\mathcal{O}(T^{1+\varepsilon})$ can be achieved, for every $\varepsilon>0$, compared to the time $T$ of an optimal sequential algorithm. Important tools are the algorithms for approximate prefix sums and compaction from Goldberg and Zwick (1995).

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes