Skip to content

Commit

Permalink
add descending priority index to combo_queue_message index to make qu…
Browse files Browse the repository at this point in the history
…eue queries faster
  • Loading branch information
u447 committed Jul 7, 2021
1 parent 56c8902 commit 5e31f61
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DROP INDEX IF EXISTS combo_queue_message;

CREATE INDEX combo_queue_message ON queue_message USING btree (queue_name , priority desc, popped, deliver_on, created_on)

0 comments on commit 5e31f61

Please sign in to comment.