Skip to content
代码片段 群组 项目
未验证 提交 0b621905 编辑于 作者: Amy Qualls's avatar Amy Qualls 提交者: GitLab
浏览文件

Merge branch 'DOCS-mmora-master-patch-20265' into 'master'

Adding note on query optimization performance

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/157376



Merged-by: default avatarAmy Qualls <aqualls@gitlab.com>
Co-authored-by: default avatarMario Mora <mmora@gitlab.com>
No related branches found
No related tags found
无相关合并请求
...@@ -40,6 +40,13 @@ To move databases from one instance to another: ...@@ -40,6 +40,13 @@ To move databases from one instance to another:
/opt/gitlab/embedded/bin/pg_dump -h $SRC_PGHOST -U $SRC_PGUSER -c -C -f praefect_production.sql praefect_production /opt/gitlab/embedded/bin/pg_dump -h $SRC_PGHOST -U $SRC_PGUSER -c -C -f praefect_production.sql praefect_production
``` ```
NOTE:
In rare occasions, you might notice database performance issues after you perform
a `pg_dump` and restore. This can happen because `pg_dump` does not contain the statistics
[used by the optimizer to make query planning decisions](https://www.postgresql.org/docs/14/app-pgdump.html).
If performance degrades after a restore, fix the problem by finding the problematic query,
then running ANALYZE on the tables used by the query.
1. Restore the databases to the destination (this overwrites any existing databases with the same names): 1. Restore the databases to the destination (this overwrites any existing databases with the same names):
```shell ```shell
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册