Home / Companies / Yugabyte / Blog / Post Details
Content Deep Dive

Using the PostgreSQL Recursive CTE – Part Two

Blog post from Yugabyte

Post Details
Company
Date Published
Author
Bryn Llewellyn
Word Count
5,188
Company Posts That Month
8
Language
English
Hacker News Points
-
Post removed?
No
Summary

The key points of the text are that the author, who is familiar with PostgreSQL and YugabyteDB, presents a solution to the Bacon Numbers problem using recursive Common Table Expressions (CTEs) in both databases. The Bacon Numbers problem involves finding the shortest chain of connections between two actors in a movie database, where an actor's Bacon Number is the length of the shortest chain connecting them to Kevin Bacon. The author explains how to use recursive CTEs to solve this problem in both PostgreSQL and YugabyteDB, highlighting similarities and differences between the approaches used for hierarchical and cyclic graphs. They also discuss the importance of early pruning in solving large-scale problems like this one.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.