Skip to content

Commit

Permalink
Include forgotten DB migration (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
rosa committed Nov 20, 2023
1 parent 5cf0752 commit 960e678
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions db/migrate/20231115211044_improve_ready_execution_indexes.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class ImproveReadyExecutionIndexes < ActiveRecord::Migration[7.1]
def change
add_index :solid_queue_ready_executions, [ :queue_name, :priority, :job_id ], name: :index_solid_queue_poll_by_queue
add_index :solid_queue_ready_executions, [ :priority, :job_id ], name: :index_solid_queue_poll_all

remove_index :solid_queue_ready_executions, [ :queue_name, :priority ]
remove_index :solid_queue_ready_executions, :priority
end
end

0 comments on commit 960e678

Please sign in to comment.