PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
April 25, 2026ACM SIGMOD Record0 citations

Technical Perspective: Output-Optimal Evaluation ofConjunctive Queries

View Full Paper
DSDan Suciu

Key Points

  • The aim is to develop an efficient query evaluation algorithm with optimal asymptotic runtime.
  • Analyzed standard query engine approaches for join execution.
  • Explored Yannakakis' algorithm involving semijoins to optimize performance.
  • Proposed using a sequential approach to remove dangling tuples before performing joins.
  • Achieved asymptotic runtime of O(N + OUT) using the proposed method.
  • Demonstrated significant reduction in intermediate result sizes compared to traditional joins.
  • Validated effectiveness on all full, acyclic queries.

Abstract

The best asymptotic runtime that we can hope for a query evaluation algorithm is O(N + OUT), where N is the size of the input database and OUT is the size of the query's output. Indeed, any algorithm must read the input, and must write the output, hence one cannot do better asymptotically. It is not immediately obvious how to evaluate a query in this time. The standard approach taken by all query engines is to compute one join at a time, but in that case the intermediate results may become much larger than both the input and the final output. Yannakakis' algorithm from the early 80's achieves a runtime of O(N +OUT) on all full, acyclic queries, by first removing all dangling tuples from all relations using a sequence of semijoins, then performing the joins.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Dan Suciu (2026) studied this question.

synapsesocial.com/papers/69ec5ac988ba6daa22dac5d0https://doi.org/10.1145/3810900.3810905
Ask AI
Helpful
Bookmark
Share
View Full Paper