this post was submitted on 06 Aug 2023
1463 points (99.0% liked)
Announcements
23360 readers
6 users here now
Official announcements from the Lemmy project. Subscribe to this community or add it to your RSS reader in order to be notified about new releases and important updates.
You can also find major news on join-lemmy.org
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
A bit technical question: how do you manage to build performant comment trees on frontend?
https://github.com/LemmyNet/lemmy-ui/blob/main/src/shared/utils/app/build-comments-tree.ts
The scaling / actual trees are done using postgres ltree in the back-end, with a
path
field representing a list of parent comment ids.Thanks!