summaryrefslogtreecommitdiffstats
path: root/core/js/setupchecks.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/js/setupchecks.js')
-rw-r--r--core/js/setupchecks.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js
index a2a75086935..a3155287ac6 100644
--- a/core/js/setupchecks.js
+++ b/core/js/setupchecks.js
@@ -183,6 +183,21 @@
type: OC.SetupChecks.MESSAGE_TYPE_INFO
})
}
+ if (data.hasMissingIndexes) {
+ var listOfMissingIndexes = "";
+ data.hasMissingIndexes.forEach(function(element){
+ listOfMissingIndexes += "<li>";
+ listOfMissingIndexes += t('core', 'Missing index "{indexName}" in table "{tableName}".', element);
+ listOfMissingIndexes += "</li>";
+ });
+ messages.push({
+ msg: t(
+ 'core',
+ 'The database is missing some indexes. Due to the fact that adding indexes on big tables could take some time they were not added automatically. By running "occ db:add-missing-indices" those missing indexes could be added manually while the instance keeps running. Once the indexes are added queries to those tables are usually much faster.'
+ ) + "<ul>" + listOfMissingIndexes + "</ul>",
+ type: OC.SetupChecks.MESSAGE_TYPE_INFO
+ })
+ }
} else {
messages.push({
msg: t('core', 'Error occurred while checking server setup'),