Resource icon

xF1 Guides Rebuild user post counts (query)

This will recalculate and update the post counts for all users at once. This is a large query that may take a while to finish.
Code:
UPDATE xf_user AS user
SET message_count = (
	SELECT COUNT(*)
	FROM xf_post AS post
	LEFT JOIN xf_thread AS...
You do not have permission to view the full content of this resource. Log in or register now.
Author
AnimeHaxor
Views
1,394
First release
Last update

More resources from AnimeHaxor

Similar resources

0.00 star(s) 0 ratings
Updated
Using Custom User Fields with User Group Promotions AnimeHaxor
Allow your members to choose which additional user groups they wish to be members of
0.00 star(s) 0 ratings
Updated
0.00 star(s) 0 ratings
Updated