Tune
| Setting | Value | 
|---|---|
| max_connections | 100 | 
| shared_buffers | 512MB | 
| effective_cache_size | 1536MB | 
| maintenance_work_mem | 128MB | 
| checkpoint_completion_target | 0.9 | 
| wal_buffers | 16MB | 
| default_statistics_target | 100 | 
| random_page_cost | 1.1 | 
| effective_io_concurrency | 200 | 
| work_mem | 4MB | 
| huge_pages | off | 
| min_wal_size | 80MB | 
| max_wal_size | 1GB | 
Check out PgTune for recommendations. DB version is 16.