Skip to content

Commit

Permalink
Make indexes on ready_executions to be covering indexes for the polli…
Browse files Browse the repository at this point in the history
…ng query

Since we select job_id and queue_name.
  • Loading branch information
rosa committed Nov 16, 2023
1 parent a471237 commit 5cf0752
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/dummy/db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.1].define(version: 2023_11_02_184135) do
ActiveRecord::Schema[7.1].define(version: 2023_11_15_211044) do
create_table "job_results", charset: "utf8mb4", collation: "utf8mb4_0900_ai_ci", force: :cascade do |t|
t.string "queue_name"
t.string "status"
Expand Down Expand Up @@ -70,8 +70,8 @@
t.integer "priority", default: 0, null: false
t.datetime "created_at", null: false
t.index ["job_id"], name: "index_solid_queue_ready_executions_on_job_id", unique: true
t.index ["priority"], name: "index_solid_queue_ready_executions_on_priority"
t.index ["queue_name", "priority"], name: "index_solid_queue_ready_executions"
t.index ["priority", "job_id"], name: "index_solid_queue_poll_all"
t.index ["queue_name", "priority", "job_id"], name: "index_solid_queue_poll_by_queue"
end

create_table "solid_queue_scheduled_executions", charset: "utf8mb4", collation: "utf8mb4_0900_ai_ci", force: :cascade do |t|
Expand Down

0 comments on commit 5cf0752

Please sign in to comment.