this post was submitted on 07 Jun 2023
325 points (100.0% liked)

Technology

37740 readers
810 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
 

First all the bs with Twitter and Elon, then Reddit having an exodus to Lemmy (not complaining lol), then Twitch. Are we like, in an alternate self healing dimension or something?

you are viewing a single comment's thread
view the rest of the comments
[–] argv_minus_one@beehaw.org 1 points 1 year ago (1 children)

Nobody's born knowing how to optimize database queries. Optimization is hard and arcane, and SQL is no exception.

[–] spoonful@beehaw.org 1 points 1 year ago (1 children)

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.

[–] argv_minus_one@beehaw.org 1 points 1 year ago

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.