mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
PERF: update_user_counts is too slow during imports
This commit is contained in:
parent
b68860ee28
commit
0101528821
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue