Back to discussionComment by orf[-]orf11 years ago1 reply#Postgres recursive queries make them pretty simple to deal with. This[1] is the query I used to pull a list of all a stories children recursively.1. https://gist.github.com/orf/5565a572c6ddda039d6fKinnard11 years ago#Hmmm, I'm trying to decide between this recursive query or something using ltrees.Can't make up my mind . . .[1] https://truongtx.me/2014/02/28/tree-structure-query-with-pos... [2] http://stackoverflow.com/questions/603894/is-postgresqls-ltr...
orf11 years ago1 reply#Postgres recursive queries make them pretty simple to deal with. This[1] is the query I used to pull a list of all a stories children recursively.1. https://gist.github.com/orf/5565a572c6ddda039d6f
Kinnard11 years ago#Hmmm, I'm trying to decide between this recursive query or something using ltrees.Can't make up my mind . . .[1] https://truongtx.me/2014/02/28/tree-structure-query-with-pos... [2] http://stackoverflow.com/questions/603894/is-postgresqls-ltr...
1. https://gist.github.com/orf/5565a572c6ddda039d6f
Can't make up my mind . . .
[1] https://truongtx.me/2014/02/28/tree-structure-query-with-pos... [2] http://stackoverflow.com/questions/603894/is-postgresqls-ltr...