Is there anyone out there with database expertise willing to help?

  • PenguinCoder@beehaw.orgM
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 year ago

    Question really is why is it developed that way? Why does it need to do a reindex every hour? I have not looked at Lemmy source code, but wondering if a trigger function could do the same thing.

    • Aaron@beehaw.org
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      (Apparently the UI allows you to edit your own deleted comment, but saving it doesn’t un-delete it, you just lose what you wrote… Bummer!)

      In the conversation on Github, it looks like they considered a trigger and some other options based on DB query analyses, and arrived at a solution. It requires code refactoring, though, so I wouldn’t expect it to be out in the wild right away.

      • ericjmorey@beehaw.orgOP
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

        There’s a branch that likely fixes the issue with a pull request to main, but it failed some automated testing and needs to be tested in main before a new release. The timing of this is unfortunate. I suspect Monday and Tuesday to have many 50x codes on any instances that get attention.

    • Aaron@beehaw.org
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      1 year ago

      In the conversation on Github it looks like they considered a trigger and looked at a ton of database query analyses and found a promising direction to go in.

      The change requires code refactoring, though, so I wouldn’t expect it to land in a stable version of Lemmy for a little bit.