Email or username:

Password:

Forgot your password?
9 posts total
Matt Baer

I'm looking for a little help working through some database scaling issues with #WriteFreely.

On our Write.as instance, we're up to 4.25 million rows in our `posts` table, and it's causing problems for some individual blogs with 9,000+ posts.

I have an idea of what some bottleneck queries are. But wondering if there are easy db optimizations we might make (indexes, etc.), and if anyone can help identify what they might be.

Boosts appreciated!

Show previous comments
DELETED

@matt if you haven't already, turn on slow query logging, it will expose the problem queries and you can tune indexes from there. You didn't mention the DB engine you are using, but MySQL can be an absolute nightmare to do this, I do it all the time.

Berkubernetus

@matt Unfortuantely I know nothing about your stack or your code (other than it being MySQL-backed). However, here's the general troubleshooting lists of things that make a database-backed web application slow:

1. Too many queries: app is pulling lots of things from the DB constantly that could be cached, or doing joins in the app code

2. Unoptimized requests: some DB requests need better queries/better data structure/indexes

...

Matt Baer

Great to see all this fediverse coverage in the news, but it all centers around... @Mastodon. And how it's hard to pick a server.

theguardian.com/media/2022/nov

techcrunch.com/2022/11/03/dece

They all seem to miss the point that Mastodon is just one part of the #fediverse :fediverse:.

Feels pretty important if you're trying to explain this federated social network to a new audience — it's about interoperable apps, not Mastodon servers.

Only one article by @dell mentions this:

gizmodo.com/how-to-join-mastod

Matt Baer

Writing.Exchange registrations are completely open for now, while people are checking out Mastodon again

maloki 🍍:ghostbat:

@matt I hope you have enough people to keep eyes on reports if they come in!

But also Yey. 😅

geoffreygevalt

@matt That's great. I am sorry I've been absent for so long. I will try again to do my part to help create a sense of community for writers.

David Velasquez

@matt hi, matt. While you’re here I was wondering if you would have any idea why I’m not able to access an account that I have on another mastodon server (@linernotes.club, same handle). Also, what would you recommend in terms of say an annual donation amount? (As you can tell, I’m a recent arrival)

Matt Baer

I’m thinking about ways to give @write_as customers ownership in the platform. I think something like a customer co-op model would really solidify the idea that we’re aligning incentives between platform and users.

Not sure where to start with that, though.

Matt Baer

Good to see Facebook being honest about their rebranding, at least. metabook.fyi

Matt Baer

Ugh, I'm locked out of a seldom-used @Mastodon account, on an instance I host that only I ever use, because I never set up email on that server. So I can't get the security code since I "appear to not have logged in from this device before".

Is there no admin option to override the login block, @Gargron?

Eugen Rochko

@matt There's indeed none (which is not good, I know). If you set your current_sign_in_at to a current datetime from the rails console it won't ask you for the code.

Matt Baer

This is very odd... One of my #Mastodon instances says for an entire #WriteFreely domain: "delivery is not available," while another Mastodon instance says the same domain can be delivered to. 🤔

Following doesn't work from the "domain undeliverable" Masto instance. I don't think there's any moderation-related reason this domain would be marked this way. So what would cause this? cc @Gargron

Eugen Rochko

@matt Delivery unavailable = no more delivery attempts after 7 consecutive days of delivery failures

Matt Baer

As I wrote about recently on @matt (write.as/matt/falling-short-in), I'm spending my spare time thinking about a new private communication tool that helps me keep in touch with people better.

Right now, it's looking like it'll be a new email client.

Matt Baer

Biggest ideas are:

- An "inbox" interface that's more about people than messages
- Deeper classification for contacts, meant for categorizing users, customers, contributors, potential customers
- Better message organization meant to facilitate more timely responses and general customer support

Matt Baer

Only got to catch the end of Evan Prodromou's #APConf2020 Q&A session, but I really appreciated the point he made about how we might grow the fediverse by only having certain interactions here (instead of cross-posting to birdsite, for example).

Darius Kazemi

@matt I'm sad I missed his q&a, I liked his talk a lot

Go Up