I read this article about PostgreSQL performance on SSD:
These two configurations seem to be important random_page_cost
vs seq_page_cost
Since both parameters need to match the particular hardware I wonder if it is possible to automatically detect the matching values?
Update
I have these steps on my mind:
- Script creates some dummy tables
- Scripts inserts data to the tables
- Script does some queries
- Script shows matching values for random_page_cost and seq_page_cost
- Human or an automated system takes these values and updates the config. This step is not part of the question.