News for hackers. Stuff that matters.
Re:Why HN was down by irahul on Monday February 18, 2013 @04:43PM (#5240917)
I think if you want the family tree, you can write a self referential(assuming post table is self referential as it should be) recursive query.

But in this case, writing a before insert/update trigger which ensure some_post.created_at < parent.created_at before setting parent.parent_id = some_post will do the trick.

There are no comments on this comment yet.