From 3cc1dac4c7d160b6ef04e72a47dc41becbca8792 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Tue, 16 Jan 2018 11:06:57 +0100 Subject: [PATCH] add documentation for the new occ command to add new database indices Signed-off-by: Bjoern Schiessle --- admin_manual/configuration_server/occ_command.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/admin_manual/configuration_server/occ_command.rst b/admin_manual/configuration_server/occ_command.rst index 090ca4b71..2f88f966e 100644 --- a/admin_manual/configuration_server/occ_command.rst +++ b/admin_manual/configuration_server/occ_command.rst @@ -21,6 +21,7 @@ occ command Directory * :ref:`config_commands_label` * :ref:`dav_label` * :ref:`database_conversion_label` +* :ref:`database_add_indices_label` * :ref:`encryption_label` * :ref:`federation_sync_label` * :ref:`file_operations_label` @@ -487,6 +488,17 @@ This is example converts SQLite to MySQL/MariaDB:: For a more detailed explanation see :doc:`../configuration_database/db_conversion` +.. _database_add_indices_label: + +Add missing indices +------------------- + +It might happen that we add from time to time new indices to already existing database tables, +for example to improve performance. In order to check your database for missing indices run +following command: + + sudo -u www-data php occ db:add-missing-indices + .. _encryption_label: Encryption