ParentFull threadtedheath123·RethinkDB attempts to do something like this, but I agree, an efficient SQL version of this would be nice.View on HN