Is there any way to tune cache_moderators()?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Clockwork
    New Member
    • May 2008
    • 24

    Is there any way to tune cache_moderators()?

    I've a pretty big userbase (2 million registered users) and much moderators.

    Because of this the left join query in cache_modertors takes too long and locks the usertable.

    Is there any way to tune this function/query? Perhaps by disabling some features?
  • Homeworld'sa
    Senior Member
    • Sep 2009
    • 920
    • 3.8.x

    #2
    Are you on a dedicated server or a VPS? You could try posting a server optimisation request.
    That's it. If you REALLY can't say ANYTHING nice to me at all on this forum, then I am going to go insanely mad at you. I've had enough of the UNTOLD ABUSE you are all giving me and you should really be CONSIDERATE of other people.

    Comment

    • Clockwork
      New Member
      • May 2008
      • 24

      #3
      The board runs on 5 dedicated servers. Imo that left join is the problem, not the servers.

      Can someone explain me for what is that function being used?

      Comment

      • kmike
        Senior Member
        • Sep 2003
        • 701
        • 3.8.x

        #4
        It's used to show forum moderators on the forum display page, and in numerous other places to fetch moderator permission data. You are probably right that the LEFT JOIN isn't needed in those other places - the LEFT JOIN is there just to fetch the mods' usernames.
        But you can't really tune it without editing the sources.
        To eliminate locking, you can convert the user table (and the moderator table, if it's big) to InnoDB.

        Comment

        • Clockwork
          New Member
          • May 2008
          • 24

          #5
          let's say I would remove the left join from the query, what would be broken? Only the modertor list at the forum display page?

          Comment

          • kmike
            Senior Member
            • Sep 2003
            • 701
            • 3.8.x

            #6
            I think so. Also the moderator column in the forum list would be affected, if you have it turned on.

            Comment

            • Removed-836727
              Banned by User Request
              • Apr 2006
              • 1274

              #7
              Wouldn't it be possible to put this result into the new vB_Cache System???

              YOu don't need to grab everytime for the moderators.
              I think it would be enought to create the cached element and to delete it, when a admin adds/modifies/deletes the moderats (or of you cache everything, also when a user is edited, for example change username)

              Comment

              • Clockwork
                New Member
                • May 2008
                • 24

                #8
                New cache system? Is that possible in 3.8?

                Comment

                • Removed-836727
                  Banned by User Request
                  • Apr 2006
                  • 1274

                  #9
                  Ups.
                  Sorry, haven't seen that this is in the 3.8 section

                  Comment

                  widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                  Working...