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?

  • argv_minus_one@beehaw.org
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

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

    • spoonful@beehaw.org
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      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
        link
        fedilink
        arrow-up
        1
        ·
        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.