Based on Database Theory in Action: Yannakakis’s Algorithm to appear at ICDT 2026

Last time I covered one of my favorite results from database theory: Yannakakis’s algorithm for acyclic joins. The algorithm is very simple, yet achieves instance-optimality on a large class of queries, meaning it’s basically perfect as far as asymptotic complexity goes. So why doesn’t every database implement it? The main reason is that the algorithm is actually not very fast in practice. To be exact, it’s usually 2-3x slower than hash join. Let’s look at an example to understand this. Consider the natural join:

Q = R_1(x_1, x_2) \bowtie R_2(x_2, x_3) \bowtie R_3(x_3, x_4…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help