50% faster vBulletin 4 importer

This commit is contained in:
Régis Hanol
2017-02-01 14:33:09 +01:00
parent 18007ed34b
commit 0d250c3935
3 changed files with 99 additions and 58 deletions

View File

@ -95,5 +95,14 @@ module ImportScripts
url: post.url,
}
end
def user_already_imported?(import_id)
@users.has_key?(import_id) || @users.has_key?(import_id.to_s)
end
def post_already_imported?(import_id)
@posts.has_key?(import_id) || @posts.has_key?(import_id.to_s)
end
end
end