[Pkg-owncloud-commits] [php-sabredav] 178/220: Added an index on firstoccurence in MySQL schema.

David Prévot taffit at moszumanska.debian.org
Thu May 12 01:21:25 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabredav.

commit bb37c48fe679fce5aa8c849f562fc9cb19eebd04
Author: Evert Pot <me at evertpot.com>
Date:   Thu Apr 21 17:46:41 2016 +0800

    Added an index on firstoccurence in MySQL schema.
    
    Fixes #798
---
 CHANGELOG.md                     | 2 ++
 examples/sql/mysql.calendars.sql | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 68db413..2bb56c6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -49,6 +49,8 @@ ChangeLog
 * #751: Fixed XML responses from failing `MKCOL` requests.
 * #600: Support for `principal-match` ACL `REPORT`.
 * #599: Support for `acl-principal-prop-set` ACL `REPORT`.
+* #798: Added an index on `firstoccurence` field in MySQL CalDAV backend. This
+  should speed up common calendar-query requests.
 
 
 3.1.3 (2016-04-06)
diff --git a/examples/sql/mysql.calendars.sql b/examples/sql/mysql.calendars.sql
index 7581efc..21c5bcb 100644
--- a/examples/sql/mysql.calendars.sql
+++ b/examples/sql/mysql.calendars.sql
@@ -10,7 +10,8 @@ CREATE TABLE calendarobjects (
     firstoccurence INT(11) UNSIGNED,
     lastoccurence INT(11) UNSIGNED,
     uid VARBINARY(200),
-    UNIQUE(calendarid, uri)
+    UNIQUE(calendarid, uri),
+    INDEX calendarid_time (calendarid, firstoccurence)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
 
 CREATE TABLE calendars (

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-php/php-sabredav.git



More information about the Pkg-owncloud-commits mailing list