Tuning the PostgreSQL database
The basic PostgreSQL configuration shipped with the product is tuned for a wide compatibility rather than performance, and some default parameters are undersized.
We recommend that you use an online version of the pgtune ( https://pgtune.leopard.in.ua/#/ ) tool to optimize the configuration. The tool generates a set of configuration items that can directly be replaced in the postgresql.conf file. You must restart the server after the changes are applied.
After the installation or upgrade or before taking a backup, we also recommend that you run the VACUUM FULL ANALYZE command from the pgAdmin of AR database. This reclaims and optimizes the space used by the database server and rebuilds the statistics. For more information about the VACUUM FULL ANALYZE command, see Routine Vacuuming in the PostgreSQL documentation.