r/DatabaseHelp • u/Dan6erbond • Mar 25 '21
Modelling Data with Nested Comments - Retrieve Top Parent Post?
/r/learnSQL/comments/mcvu9p/modelling_data_with_nested_comments_retrieve_top/
3
Upvotes
View all comments
Show parent comment
2
u/Dan6erbond Mar 26 '21
I'm not exactly sure what you mean with the deserialization. To be clear, this is my database and I'm trying to model it correctly with as little redundant data as possible.
With the recursive CTEs I don't have any problems anymore, I can get the parent post "efficiently" when I need it, and have a clean enough folder structure which I only intend to update if I ever run into performance issues with this method.
Thanks for the advice!