From 2ad784d37ae88338f9bc610cd527c72fad052aa0 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 7 Jun 2017 05:42:30 +0000 Subject: [PATCH] Speeded up calling "proc_run" --- database.sql | 5 +++-- include/dbstructure.php | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/database.sql b/database.sql index 2c13264919..7f7e975e72 100644 --- a/database.sql +++ b/database.sql @@ -1,6 +1,6 @@ -- ------------------------------------------ --- Friendica 3.5.2-rc (Asparagus) --- DB_UPDATE_VERSION 1227 +-- Friendica 3.5.3dev (Asparagus) +-- DB_UPDATE_VERSION 1228 -- ------------------------------------------ @@ -1116,6 +1116,7 @@ CREATE TABLE IF NOT EXISTS `workerqueue` ( `executed` datetime NOT NULL DEFAULT '0001-01-01 00:00:00', PRIMARY KEY(`id`), INDEX `pid` (`pid`), + INDEX `parameter` (`parameter`(192)), INDEX `priority_created` (`priority`,`created`) ) DEFAULT COLLATE utf8mb4_general_ci; diff --git a/include/dbstructure.php b/include/dbstructure.php index 8449307638..161df46f69 100644 --- a/include/dbstructure.php +++ b/include/dbstructure.php @@ -1743,6 +1743,7 @@ function db_definition() { "indexes" => array( "PRIMARY" => array("id"), "pid" => array("pid"), + "parameter" => array("parameter(192)"), "priority_created" => array("priority", "created"), ) );