Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ask HN: How do I represent a hierarchy in RDBMS?.
Look into ltree in postgres or similar
@maxk42 approach with the relationship table works well for both read and write intensive applications.
Look into ltree in postgres or similar