]> git.mxchange.org Git - friendica.git/commitdiff
Added index for performance issues
authorMichael <heluecht@pirati.ca>
Thu, 2 Mar 2017 05:46:44 +0000 (05:46 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 2 Mar 2017 05:46:44 +0000 (05:46 +0000)
boot.php
database.sql
include/dbstructure.php
update.php

index 1e0c300e19d6facff24f0bb0d9d1439ac6f93715..832a95de40aae78647c6c5b918637bf4e2b5b46e 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -40,7 +40,7 @@ define ( 'FRIENDICA_PLATFORM',     'Friendica');
 define ( 'FRIENDICA_CODENAME',     'Asparagus');
 define ( 'FRIENDICA_VERSION',      '3.5.1-rc' );
 define ( 'DFRN_PROTOCOL_VERSION',  '2.23'    );
-define ( 'DB_UPDATE_VERSION',      1214      );
+define ( 'DB_UPDATE_VERSION',      1215      );
 
 /**
  * @brief Constant with a HTML line break.
index 64d8d9f7d0cd605d3e5cc69a164241ca30e24b8b..b133489e4e3e6b8cf224b045914d5f1fdbe297c7 100644 (file)
@@ -1,6 +1,6 @@
 -- ------------------------------------------
--- Friendica 3.5.1-dev (Asparagus)
--- DB_UPDATE_VERSION 1213
+-- Friendica 3.5.1-rc (Asparagus)
+-- DB_UPDATE_VERSION 1215
 -- ------------------------------------------
 
 
@@ -532,6 +532,7 @@ CREATE TABLE IF NOT EXISTS `item` (
         INDEX `parent-uri` (`parent-uri`),
         INDEX `extid` (`extid`),
         INDEX `uid_id` (`uid`,`id`),
+        INDEX `uid_contactid_id` (`uid`,`contact-id`,`id`),
         INDEX `uid_created` (`uid`,`created`),
         INDEX `uid_unseen_contactid` (`uid`,`unseen`,`contact-id`),
         INDEX `uid_network_received` (`uid`,`network`,`received`),
@@ -1016,7 +1017,8 @@ CREATE TABLE IF NOT EXISTS `thread` (
         INDEX `uid_contactid_commented` (`uid`,`contact-id`,`commented`),
         INDEX `uid_contactid_created` (`uid`,`contact-id`,`created`),
         INDEX `uid_created` (`uid`,`created`),
-        INDEX `uid_commented` (`uid`,`commented`)
+        INDEX `uid_commented` (`uid`,`commented`),
+        INDEX `uid_wall_created` (`uid`,`wall`,`created`)
 ) DEFAULT CHARSET=utf8mb4;
 
 --
index 1e4790de2ee49cb786304e6fb46d1876c99b6d6e..4ad54e6ba2485ba5b53afb2a77c1a2868b66f09c 100644 (file)
@@ -1526,6 +1526,7 @@ function db_definition($charset) {
                                        "uid_contactid_created" => array("uid","contact-id","created"),
                                        "uid_created" => array("uid","created"),
                                        "uid_commented" => array("uid","commented"),
+                                       "uid_wall_created" => array("uid","wall","created"),
                                        )
                        );
        $database["tokens"] = array(
index 041de9cfff4b2acc1d85f822a94f25bac939bd95..64259bbb1dcceec7974f5fdfc9bb5535d00ab886 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-define('UPDATE_VERSION' , 1214);
+define('UPDATE_VERSION' , 1215);
 
 /**
  *