post_aggregates should be the "main" table that the others are joined to, and primarily filter from.
Is there a specific reason the post_aggregates and post table are spilt? In general I think it would make sense to have everything in the same table. (same for comments /person...). 1:1 relations aren't that great in postgresql in general imo, tables with a huge amount of columns work pretty well. It would increase contention a bit because every change in votes would lock the post row for a bit (just writes, not reads) but I don't think that justifies the split. Or is there other reasons for the spilt?
0
this post was submitted on 18 Jul 2023
0 points (50.0% liked)
Issue Tracker
169 readers
1 users here now
Welcome to the Lemmy Issue Tracker!
Here you can share your ideas and report issues related to the Lemmy project. We welcome all feedback and suggestions to help us improve the platform.
Guidelines for submitting issues
- Please write a single idea or issue per post/comment.
- Use the following format for your post title:
- [BE] or [UI] for backend or web-ui issues.
- The type of issue: [Bug], [Feature Request], etc.
- If the issue is resolved, please add [Closed] at the start of the comment.
How to contribute
If you want to contribute to the development of Lemmy, please check out our GitHub repository. You can also join our Matrix chat to discuss ideas and issues with the community.
Thank you for your support and contributions to the Lemmy project!
founded 1 year ago
MODERATORS