No announcement yet.

Is there any way to tune cache_moderators()?

  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

  • #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.


    • #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?


      • #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.


        • #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?


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


            • #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)


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


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


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