From 1a33dfa01808dbea4fcf0d94a9fa232010877b76 Mon Sep 17 00:00:00 2001 From: Maksim Kotlyar Date: Mon, 13 Aug 2018 14:30:40 +0300 Subject: [PATCH] [dbla] add index --- pkg/dbal/DbalContext.php | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/dbal/DbalContext.php b/pkg/dbal/DbalContext.php index 8c7dca75f..ec768daf7 100644 --- a/pkg/dbal/DbalContext.php +++ b/pkg/dbal/DbalContext.php @@ -190,6 +190,7 @@ public function createDataBaseTable() $table->addIndex(['queue']); $table->addIndex(['priority']); $table->addIndex(['delayed_until']); + $table->addIndex(['priority', 'published_at']); $sm->createTable($table); }