1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class AddLockIndexToContainers < ActiveRecord::Migration[4.2]
7 # For the current code in sdk/go/dispatch:
8 add_index :containers, [:locked_by_uuid, :priority]
9 # For future dispatchers that use filters instead of offset for
10 # more predictable paging:
11 add_index :containers, [:locked_by_uuid, :uuid]