summaryrefslogtreecommitdiff
path: root/docs/administration
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-02-22 13:14:30 +0000
committerlain <lain@soykaf.club>2020-02-22 13:14:30 +0000
commitc05cbc47f9e83a7ba41124475e48cf01ecbb2e56 (patch)
treed5b7d3a0c5a5875d66e4d80e0b04c14a7307cdcb /docs/administration
parent114e7b764ed5ae03211cca40e7b19f33292b3d1c (diff)
downloadpleroma-c05cbc47f9e83a7ba41124475e48cf01ecbb2e56.tar.gz
pleroma-c05cbc47f9e83a7ba41124475e48cf01ecbb2e56.zip
Better advice for vacuuming after restoring.
Diffstat (limited to 'docs/administration')
-rw-r--r--docs/administration/backup.md5
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/administration/backup.md b/docs/administration/backup.md
index 692aa7368..be57bf74a 100644
--- a/docs/administration/backup.md
+++ b/docs/administration/backup.md
@@ -18,9 +18,8 @@
6. Run `sudo -Hu postgres pg_restore -d <pleroma_db> -v -1 </path/to/backup_location/pleroma.pgdump>`
7. If you installed a newer Pleroma version, you should run `mix ecto.migrate`[^1]. This task performs database migrations, if there were any.
8. Restart the Pleroma service.
-9. After you've restarted Pleroma, you will notice that postgres will take up more cpu resources than usual. A lot in fact. To fix this you must do a VACUUM ANLAYZE. This can also be done while the instance is still running like so:
- $ sudo -u postgres psql pleroma_database_name
- pleroma=# VACUUM ANALYZE;
+9. Run `sudo -Hu postgres vacuumdb --all --analyze-in-stages`. This will quickly generate the statistics so that postgres can properly plan queries.
+
[^1]: Prefix with `MIX_ENV=prod` to run it using the production config file.
## Remove