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

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

Optimize a db query on the game index page
user
```ruby
class GamesController < ApplicationController
  def index
    @games = Game.includes(:pictures).page(params[:page]).decorate
  end

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