class GamesController < ApplicationController
  def index
    @games = Game.page(params[:page]).decorate
  end

  def show
    @game = Game.find(params[:id]).decorate
  end
end

class GamesController < ApplicationController
  def index
    @games = Game.includes(:pictures).page(params[:page]).decorate
  end

  def show
    @game = Game.find(params[:id]).decorate
  end
end

Optimize a db query on the game index page
Optimize a db query on the game index page
