Database performace has degraded considerable after upgrading to 7.1

Also, if you haven’t seen our Postgres tuning recommendations, this might be worth taking a look: High Availability cluster — Mattermost documentation