mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 04:50:59 +00:00
docs(ops): gather planner statistics after restoring into the new major
This commit is contained in:
1 parent
b597627a39
commit
6b3c1cc433
1 file changed
+7
-1
@@ -62,7 +62,13 @@ docker compose ps db
|
||||
docker compose exec -T db pg_restore -U healthlog -d healthlog --no-owner \
|
||||
< healthlog-pg16-<date>.dump
|
||||
|
||||
# 7. Start the app (and app-worker, if you run it) and confirm it.
|
||||
# 7. Gather the planner statistics. A restore brings the rows but not the
|
||||
# statistics, and until autovacuum gets round to every table the planner
|
||||
# guesses at their sizes, which can turn a sub-second page into one that
|
||||
# takes many seconds.
|
||||
docker compose exec -T db vacuumdb -U healthlog -d healthlog --analyze-in-stages
|
||||
|
||||
# 8. Start the app (and app-worker, if you run it) and confirm it.
|
||||
docker compose up -d app
|
||||
curl -s http://localhost:3000/api/version
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user