Database tuning is an ongoing exercise. This presentation (from Postgres Conf 2018 NJ) shows you how to continually tune your database. What metrics do you need to track and how can you feed them back into your application, data lifecycle and database config.