From 616932c8db9dea34576e1d7f092a3231491c098a Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 6 Feb 2019 12:03:56 +0000 Subject: [PATCH] Improved indexes for worker queue processing --- config/dbstructure.config.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config/dbstructure.config.php b/config/dbstructure.config.php index dcacce811..fdc54b0bd 100644 --- a/config/dbstructure.config.php +++ b/config/dbstructure.config.php @@ -34,7 +34,7 @@ use Friendica\Database\DBA; if (!defined('DB_UPDATE_VERSION')) { - define('DB_UPDATE_VERSION', 1300); + define('DB_UPDATE_VERSION', 1301); } return [ @@ -1376,12 +1376,12 @@ return [ ], "indexes" => [ "PRIMARY" => ["id"], - "pid" => ["pid"], - "parameter" => ["parameter(64)"], - "priority_created_next_try" => ["priority", "created", "next_try"], + "done_parameter" => ["done", "parameter(64)"], + "done_pid" => ["done", "pid"], + "done_priority_created_next_try" => ["done", "priority", "created", "next_try"], "done_priority_executed_next_try" => ["done", "priority", "executed", "next_try"], - "done_executed_next_try" => ["done", "executed", "next_try"], "done_priority_next_try" => ["done", "priority", "next_try"], + "done_executed_next_try" => ["done", "executed", "next_try"], "done_next_try" => ["done", "next_try"] ] ],