We’re excited to have you join us! By registering, you’ll gain access to exclusive content, including leaked files and nulled software. Engage with our community, share your insights, and stay updated on the latest releases.

Get ready to explore and enjoy all the benefits of being a member, and feel free to connect with others through discussions and private messages.

Warning: Please do not create multiple accounts. We have a system in place that detects multiple account registrations, and any violations may result in a permanent ban.

Sign Up Now and Start Exploring!
  • License distribution for the
    Ibo 3.9 app+ panel with 17 themes to choose
    is now available for free, we are decrypting it now
    Only for VIP memberships

XenForo Rebuild User Post Counts (query)

El Bana

Active member
Registered
Joined
Jul 25, 2024
Messages
142
This is a query which updates user post counts. It takes into consideration moderated and deleted status of threads and posts, as well as each forum's "Count messages posted in this forum toward user total" setting.


SQL:
Please, Log in or Register to view codes content!

The above single query may timeout on very large forums. If this is the case, you can break it down into queries that handle a smaller number of users in each query.

The example below would handle it in three chunks of up to 50,000 users with each query. Change it as needed for your forum and keep running it with additional queries, each with higher counts in the two user.user_id WHERE clauses until no more records are matched:



SQL:
Please, Log in or Register to view codes content!
 
Back
Top