this post was submitted on 25 Mar 2025
302 points (98.7% liked)

Announcements

24025 readers
5 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
 

In the last weeks Lemmy has seen a lot of growth, with thousands of new users. To welcome them we are holding this AMA to answer questions from the community. You can ask about the beginnings of Lemmy, how we see the future of Lemmy, our long-term goals, what makes Lemmy different from Reddit, about internet and social media in general, as well as personal questions.

We'd also like to hear your overall feedback on Lemmy: What are its greatest strengths and weaknesses? How would you improve it? What's something you wish it had? What can our community do to ensure that we keep pulling users away from US tech companies, and into the fediverse?

Lemmy and Reddit may look similar at first glance, but there is a major difference. While Reddit is a corporation with thousands of employees and billionaire investors, Lemmy is nothing but an open source project run by volunteers. It was started in 2019 by @dessalines and @nutomic, turning into a fulltime job since 2020. For our income we are dependent on your donations, so please contribute if you can. We'd like to be able to add more full-time contributors to our co-op.

We will start answering questions from tomorrow (Wednesday). Besides @dessalines and @nutomic, other Lemmy contributors may also chime in to answer questions:

Here are our previous AMAs for those interested.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 15 points 1 week ago (16 children)

The way to solve the database problems isn't to keep throwing more and more money at powerful servers and scaling. Its to fix it at the root: lemmy's unoptimized database.

@dullbananas has done invaluable work in making our DB better (and all of these will be in 1.0), but I'm convinced that if we had even 1-2 more Postgresql experts do a pass over the DB, and ideally one full-time expert, all of these problems could be solved.

[–] [email protected] 6 points 1 week ago (11 children)

Does the project maintain a list of known slow queries? This is my favorite type of work

[–] [email protected] 7 points 1 week ago* (last edited 1 week ago) (10 children)

The post list query is by far the worst offender. It needs to filter, sort, cursor paginate, and join to many tables, and indexes are hard to follow and keep up with.

What's more is that the problems only surface with lots of historical data, meaning we can only really test the query plans with a fully populated DB.

All this requires running lemmy locally, and inspecting the postgres query durations. We really need proper test suites (lemmy DB perf is one example) that can stress-test production data also.

Here is one historical issue:

I'd very much appreciate any help.

[–] [email protected] 7 points 1 week ago (1 children)

I should have some time tonight to start looking at this. Thanks for the info!

[–] [email protected] 3 points 1 week ago

Thank you in advance!

load more comments (8 replies)
load more comments (8 replies)
load more comments (12 replies)