TASTE-OF-IT

Nextcloud fehlende Indizes in der Datenbank

Nextcloud Logo

Nextcloud Logo

Einer meiner Nextcloud Server zeigt unter “Übersicht” das fehlen von Indizes in der Datenbank.

In der Datenbank fehlen einige Indizes. Auf Grund der Tatsache, dass das Hinzufügen von Indizes in großen Tabellen einige Zeit in Anspruch nehmen kann, wurden diese nicht automatisch erzeugt. Durch das Ausführen von “occ db:add-missing-indices” können die fehlenden Indizes manuell hinzugefügt werden, während die Instanz weiter läuft. Nachdem die Indizes hinzugefügt wurden, sind Anfragen auf die Tabellen normalerweise schneller.


– Fehlender Index “share_with_index” in der Tabelle “oc_share”.
– Fehlender Index “parent_index” in der Tabelle “oc_share”.
– Fehlender Index “owner_index” in der Tabelle “oc_share”.
– Fehlender Index “initiator_index” in der Tabelle “oc_share”.
– Fehlender Index “fs_mtime” in der Tabelle “oc_filecache”.

Die Lösung wird auch mitgeliefert und sieht wie folgt aus:

Nextcloud fehlende Indizes in der Datenbank setzen

Check indices of the share table.
Adding additional share_with index to the share table, this can take some time…
Share table updated successfully.
Adding additional parent index to the share table, this can take some time…
Share table updated successfully.
Adding additional owner index to the share table, this can take some time…
Share table updated successfully.
Adding additional initiator index to the share table, this can take some time…
Share table updated successfully.
Adding additional mtime index to the filecache table, this can take some time…
Filecache table updated successfully.

Thats it…

Die mobile Version verlassen