PERF: update_user_counts is too slow during imports

This commit is contained in:
Neil Lalonde 2016-05-17 13:22:19 -04:00
parent b68860ee28
commit 0101528821

View file

@ -376,6 +376,8 @@ class PostCreator
end
def update_user_counts
return if @opts[:import_mode]
@user.create_user_stat if @user.user_stat.nil?
if @user.user_stat.first_post_created_at.nil?