mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
PERF: update_user_counts is too slow during imports
This commit is contained in:
parent
b68860ee28
commit
0101528821
@ -376,6 +376,8 @@ class PostCreator
|
|||||||
end
|
end
|
||||||
|
|
||||||
def update_user_counts
|
def update_user_counts
|
||||||
|
return if @opts[:import_mode]
|
||||||
|
|
||||||
@user.create_user_stat if @user.user_stat.nil?
|
@user.create_user_stat if @user.user_stat.nil?
|
||||||
|
|
||||||
if @user.user_stat.first_post_created_at.nil?
|
if @user.user_stat.first_post_created_at.nil?
|
||||||
|
Loading…
Reference in New Issue
Block a user