Sets the planner's assumption about the effective size of the disk cache that is available to a single query. This is factored into estimates of the cost of using an index; a higher value makes it more likely index scans will be used, a lower value makes it more likely sequential scans will be used. When setting this parameter you should consider both PostgreSQL's shared buffers and the portion of the kernel's disk cache that will be used for PostgreSQL data files. Also, take into account the expected number of concurrent queries on different tables, since they will have to share the available space. This parameter has no effect on the size of shared memory allocated by PostgreSQL, nor does it reserve kernel disk cache; it is used only for estimation purposes. The system also does not assume data remains in the disk cache between queries. The default is 4 gigabytes (
- Issue modifying effective_cache_size in postgresql.conf
- Understanding DB level caching in RAM for POSTGRESS and MYSQL
- Postgres - Configuration Change to Vacuum Requires Restart?
- Extremely slow query on 1st run, even with indexes
- Postgres query dramatically slow on prod, but very fast on local laptop