this post was submitted on 07 Jun 2023
594 points (100.0% liked)
Technology
37712 readers
166 users here now
A nice place to discuss rumors, happenings, innovations, and challenges in the technology sphere. We also welcome discussions on the intersections of technology and society. If it’s technological news or discussion of technology, it probably belongs here.
Remember the overriding ethos on Beehaw: Be(e) Nice. Each user you encounter here is a person, and should be treated with kindness (even if they’re wrong, or use a Linux distro you don’t like). Personal attacks will not be tolerated.
Subcommunities on Beehaw:
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Lemmy is having the same problem and doesn't have ads.
Does it though? This instance has thousands of users and interactions already and is running on just few dollars a month.
It's running on a few hundred dollars a month, if I recall correctly, and it has only about 450 users per day. (The sidebar statistics don't include a figure for peak concurrent users, unfortunately, and that's what we really need to know.)
Ah didnt see that increase though decentralized systems are inheritly very inefficient unfortunately
The issue I saw was with answering user requests for content—which post do you want to see, which community was it posted to, which comments are on that post, who wrote them, what are their vote scores, and so on. Nothing to do with decentralization. Reddit would have had the same problem, and judging from early Reddit's performance and reliability woes, it probably did have the same problem.
That's just bad engineering tbh.
Nobody's born knowing how to optimize database queries. Optimization is hard and arcane, and SQL is no exception.
I didn't look into this but this looks way more complicated than it should be. The query in the issue looks absolutely ridiculous tbh.
I think it's just the lack of line breaks. The first query, once you unroll it, looks like what you need to fetch and display a list of posts. I don't see anything extraneous in there.