After an upgrade of PostgreSQL, we strongly recommend running the following SQL command to ensure query plans are regenerated as this doesn't necessarily happen automatically.
For that, open a database console. On a packaged installation, this is the way to do it:
```
psql $(openproject config:get DATABASE_URL)
```
Please change the command appropriately for other installation methods. Once connected, run the following command