From 4e0ccd9fe452fa38d8c83d6ff6b130d9b22727d4 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 16 Apr 2019 13:30:27 +0200 Subject: [PATCH] Drop activity_time index To avoid other queries prefering this index and being painfully slow. Signed-off-by: Roeland Jago Douma --- appinfo/info.xml | 2 +- .../Version2010Date20190416112817.php | 35 +++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 lib/Migration/Version2010Date20190416112817.php diff --git a/appinfo/info.xml b/appinfo/info.xml index 57c33d2ea..77b806e26 100755 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -14,7 +14,7 @@ More information is available in the Activity documentation. - 2.10.0 + 2.10.1 agpl Frank Karlitschek Joas Schilling diff --git a/lib/Migration/Version2010Date20190416112817.php b/lib/Migration/Version2010Date20190416112817.php new file mode 100644 index 000000000..dfd2b7290 --- /dev/null +++ b/lib/Migration/Version2010Date20190416112817.php @@ -0,0 +1,35 @@ +getTable('activity'); + + if ($table->hasIndex('activity_time')) { + $table->dropIndex('activity_time'); + } + + return $schema; + } + +}