Thread.new do @suggest_topics = Topic.suggest.limit(3) end @threads << Thread.new do @topics = Topic.last_actived if current_user @topics = @topics.without_nodes(current_user.blocked_node_ids) @topics = @topics.without_users(current_user.blocked_user_ids) else @topics = @topics.without_hide_nodes end @topics = @topics.paginate(page: params[:page], per_page: 22) end @threads.each(&:join) end