Skip to content

Commit

Permalink
Cover queue_name in the index too
Browse files Browse the repository at this point in the history
  • Loading branch information
jacopofar committed Apr 8, 2024
1 parent 4737672 commit 94e6d1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions postgrestq/task_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ def _create_queue_table(self) -> None:
cur.execute(
sql.SQL(
"""CREATE INDEX IF NOT EXISTS
task_queue_can_start_at_idx
ON {} (can_start_at)
task_queue_queue_name_can_start_at_idx
ON {} (queue_name, can_start_at)
"""
).format(sql.Identifier(self._table_name))
)
Expand Down

0 comments on commit 94e6d1a

Please sign in to comment.