Details here: https://github.com/LemmyNet/lemmy/issues/3165

This will VASTLY decrease the server load of I/O for PostgreSQL, as this mistaken code is doing writes of ~1700 rows (each known Lemmy instance in the database) on every single comment & post creation. This creates record-locking issues given it is writes, which are harsh on the system. Once this is fixed, some site operators will be able to downgrade their hardware! ;)

  • Aux@lemmy.world
    link
    fedilink
    arrow-up
    4
    arrow-down
    49
    ·
    1 year ago

    That’s not fascinating, that’s depressing. Lemmy team lacks development skill.

    • basequal@lemmy.world
      link
      fedilink
      arrow-up
      34
      ·
      edit-2
      1 year ago

      I am always fascinated with these types of comments, specifically for a free and open-source software. There are lemmy instances supporting hundreds of thousands of users and trafic, feedback from both server owners and lemmy devs is almost instantaneous.

      A platform like lemmy requires client side knowledge to build both desktop and mobile UI (that are performant), it requires ActivityPub knowledge to integrate with the Fediverse, it requires backend knowledge to build APIs for 100% feature compatibility with 3rd party apps. It requires DB knowledge to optimize queries, it requires devops / platform knowledge to deploy it.

      And all of this is built in public.

      BuT LEMmY tEaM lAcks dEvEloPmenT SkiLL – sure buddy.

      • Aux@lemmy.world
        link
        fedilink
        arrow-up
        2
        arrow-down
        18
        ·
        1 year ago

        What’s so special about open source? Shit code is shit code.

        • CurseBunny@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          4
          ·
          edit-2
          1 year ago

          It’s more to the point that a project of this scale and range in the hands of a small group of people is expected to have some shit code somewhere.

    • Zeth0s@lemmy.world
      link
      fedilink
      arrow-up
      13
      ·
      1 year ago

      Or there’s just room for improvement and optimization, as each developer has its strengths and weaknesses, as any other professional, and a system like lemmy is very complex and really requires to cover a lot from backend to front end.

      And there used to be only 2 developers.

      I once check a open source implementation of a niche product from Microsoft, and it was a nightmare of unoptimized code. And Microsoft spent a lot of development resources there.

      Creating lemmy as 2 people job is quite impressive. Luckily now there are resources for optimization

    • darth_helmet@sh.itjust.works
      link
      fedilink
      arrow-up
      11
      ·
      1 year ago

      This is such a dumb take. Using a database efficiently is not some binary, once-off thing: you build what works based on the data you have at the time. When it works, you move on to other features. It takes analysis of real operation over time to find the bottlenecks, and discipline to focus on fixing the things that will have the most benefit to your users.

      There are many successful tech companies who introduce features that create dogshit performance impacts regularly. They work because there are people looking at metrics and catching issues to fix. This is healthy.