Transform2942

joined 2 years ago
[–] [email protected] 2 points 3 days ago

If you want to get banned on lemmy.world the easiest way is to post anti-colonial agitprop

[–] [email protected] 19 points 4 days ago (2 children)

That depends, do you have the "rich" status condition?

[–] [email protected] 120 points 4 days ago (11 children)

yes, he uses the hype investor cash that poured into the ai boondogle to cover his insane twitter purchase and literally bail himself out of his stupidity

[–] [email protected] 13 points 4 days ago* (last edited 4 days ago)

he's dead jim

[–] [email protected] 4 points 6 days ago* (last edited 6 days ago) (7 children)

Good evening Dessalines, I have started looking at the posts query.

The lowest hanging fruit I think would be if we could replace some of the joins with WHERE EXISTS which can have a huge impact on the query time. It seems this is supported in Diesel: https://stackoverflow.com/a/74300447

This is my first time looking at the codebase so I can't tell yet which joins are purely for filtering (in which case they can be replaced by WHERE EXISTS) and which joins need to be left in because some of their columns end up in the final SELECT

I can't tell for sure yet but it also looks like this might also be using LIMIT...OFFSET pagination? That can be a real drag on performance but isn't as easy to fix.

EDIT:

Looking some more, and reading some linked github discussion - I think to really get this out of the performance pits will require some denormalization like a materialized view or manual cache tables populated by triggers. I really like the ranking algorithm but so far I'm finding it difficult to optimize from a query perspective

[–] [email protected] 12 points 6 days ago* (last edited 6 days ago)

I think the main reason is because the vast majority of Lemmings are former Redditors so Lemmy is popular where Reddit is popular

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

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

[–] [email protected] 5 points 6 days ago (11 children)

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

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

I literally know nothing about the game but that render looks to me exactly like kids' recreational soccer on a Saturday morning

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

I think the exact tool you're looking for is called a spoon chisel. I'm only barely into the craft, but it seems like a set of chisels is one of the fundamental tools of a woodworker.

I also think your best results when cutting the branch in half is going to be on a band saw of some kind

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

Because some accounts like to spam on certain hashtags, I had the best results with muting an account the second I thought it was annoying. It's nothing personal, I just don't want to see their posts on my timeline anymore, which is what mute accomplishes

view more: next ›