From 946f48f17add05434d9156cddbfd338362ca571f Mon Sep 17 00:00:00 2001 From: Ralf Siepker Date: Fri, 6 Aug 2021 12:27:26 +0200 Subject: [PATCH] #1190 add index on delivery_id to prevent slow queries --- pkg/dbal/DbalContext.php | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/dbal/DbalContext.php b/pkg/dbal/DbalContext.php index 314db5dde..fc1f4a27a 100644 --- a/pkg/dbal/DbalContext.php +++ b/pkg/dbal/DbalContext.php @@ -238,6 +238,7 @@ public function createDataBaseTable(): void $table->addIndex(['redeliver_after', 'delivery_id']); $table->addIndex(['time_to_live', 'delivery_id']); + $table->addIndex(['delivery_id']); $sm->createTable($table); }