Skip to content

Commit 3d1fbca

Browse files
authored
Merge pull request #498 from php-enqueue/dbal-add-index
[dbla] Add index, fix performance issue.
2 parents f14bf35 + 1a33dfa commit 3d1fbca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/dbal/DbalContext.php

+1
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ public function createDataBaseTable()
190190
$table->addIndex(['queue']);
191191
$table->addIndex(['priority']);
192192
$table->addIndex(['delayed_until']);
193+
$table->addIndex(['priority', 'published_at']);
193194

194195
$sm->createTable($table);
195196
}

0 commit comments

Comments
 (0)