We’re still working to find a solution for the posting slowness in large communities.

We have seen that a post does get submitted right away, but yet the page keeps ‘spinning’

So right after you clicked ‘Post’ or ‘Reply’ you can refresh the page and the post should be there.

(But maybe to be sure you could copy the contents of your post first, so you can paste again if anything would go wrong…)

    • RoyalEngineering@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 year ago

      Maybe this is a dumb question, but why would replacing websockets speed things up? I read the Wikipedia page on it, but I guess I don’t understand it fully.

      • phiresky@lemmy.world
        link
        fedilink
        English
        arrow-up
        8
        ·
        1 year ago

        In general websockets scale badly because the server has to keep open a connection and a fair amount of state. You also can’t really cache websocket messages like you can normal HTTP responses. Not sure which reasons apply to Lemmy though.

    • Slashzero@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      I really hope someone is doing some level of performance testing on those changes to make sure the changes fix the performance issues.

  • Scaldart@lemmy.world
    link
    fedilink
    English
    arrow-up
    16
    ·
    1 year ago

    Just hopping into the chain to say that I appreciate you and all of your hard work! This place—Lemmy in general, but specifically this instance—has been so welcoming and uplifting. Thank you!

  • mykl@lemmy.world
    link
    fedilink
    English
    arrow-up
    15
    ·
    1 year ago

    At least the “reply” button goes away so I don’t end up double- triple- or even duodecuple-posting! Thanks for all the hard work that must be going on behind the scenes right now!

    • cascadingsymmetry@lemmy.world
      link
      fedilink
      English
      arrow-up
      15
      ·
      1 year ago

      I kept getting a timeout message from Jerboa which led me to think I hadn’t been posted. So I ended up submitting the same joke to the Dad Jokes sub three times. Which actually is how dad might tell that joke.

  • Slashzero@lemmy.world
    link
    fedilink
    English
    arrow-up
    12
    ·
    edit-2
    1 year ago

    Have you tried enabling the slow query logs @ruud@lemmy.world? I went through that exercise yesterday to try to find the root cause but my instance doesn’t have enough load to reproduce the conditions, and my day job prevents me from devoting much time to writing a load test to simulate the load.

    I did see several queries taking longer than 500ms (up to 2000ms) but they did not appear related to saving posts or comments.

  • gkd@lemmy.world
    link
    fedilink
    English
    arrow-up
    11
    ·
    1 year ago

    Been noticing this in the app I’m working on. Pretty much all POST requests fail to return a response and just timeout after 60 seconds. A quick refresh shows that the new items do successfully get created though.

  • wit@lemmy.world
    link
    fedilink
    English
    arrow-up
    10
    ·
    1 year ago

    Again, thank you for the outstanding work! You are awesome!

    Also, the new icon for lemmy world is great!

  • vepro@lemmy.world
    link
    fedilink
    English
    arrow-up
    10
    ·
    1 year ago

    I assume that there is something that is O(N), which explains why wait time scales with community size (amount of posts, comments)

    • Slashzero@lemmy.world
      link
      fedilink
      English
      arrow-up
      9
      arrow-down
      2
      ·
      1 year ago

      Oh, Big-O notation? I never thought I’d see someone else mention big O notation out in the wild!

      :high-five:

      • manitcor@lemmy.intai.tech
        link
        fedilink
        English
        arrow-up
        8
        ·
        1 year ago

        you are going to meet a lot of OG redditors in the next few weeks. Old reddit had Big O in every post, even posts with cute animals.

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

          That’s pretty neat! I’ve honestly never seen it mentioned on Reddit before, so got a bit excited to see someone mention it here, admittedly maybe too excited.

          • manitcor@lemmy.intai.tech
            link
            fedilink
            English
            arrow-up
            4
            ·
            1 year ago

            there was a time, before the digg invasion, where someone would post a picture of a woman feeding 30 cats and there would be Big O jokes about how well this would work and crazy modifications to the situation to improve it. This would be almost every thread at one point on the site. I miss it.

            • Slashzero@lemmy.world
              link
              fedilink
              English
              arrow-up
              2
              ·
              1 year ago

              That actually sounds like something I would have enjoyed. I joined Reddit around the time it started taking over, I think.

              • manitcor@lemmy.intai.tech
                link
                fedilink
                English
                arrow-up
                2
                ·
                1 year ago

                Those years before the Digg invasion are often the magic and mythic times OGs speak of, lots of amazing happened after too, but that early culture was almost entirely washed away by Digg and subsequent mainstreaming of some subs. the move from being a focus on quality link aggregation to a points game really helped push things down hill.

                At this point I’m not sure meta-moderation is really a workable system and I kind of hate internet points. There are some new tools and techniques we can try in a system like this.

  • Lethal@lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    ·
    1 year ago

    Thanks for your and the other Lemmy devs work on this. These growing pains are a good thing as frustrating as it can be for users and maintainers alike. Lemmy will get bigger and this optimization treadmill is really just starting.

  • kaxora@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    ·
    1 year ago

    In my case, the page keeps spinning but the post is not submitted, regardless of reloading the page or waiting for a long time. There was one case where I cut down significantly on the amount of characters in the post and then it posted, but I have been unable to replicate this.

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

      I have the same issue with image posts. If I submit them through the app the posts counter on my profile goes up, but there’s no post. I also can’t retrieve any posts for my own account. It says I have 3 but it shows none.

      Comments work OK so I’m not sure what the problem is. I was worried I got restricted or something.

      Edit: Comments seem to work as the OP suggests though. I get the spinner but they’ve been posted already.

    • Moghul@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Oh my god I’m so fucking stupid. If you hide posts you’ve seen it’ll also hide your own posts…