Planner-related settings
Effective cache size (effective_cache_size) should be set to an estimate of how much memory is available for disk caching in the operating system, and within the database, after taking into account what's used by the operating system and other applications. This value for a dedicated postgres server is around 50% to 70% of the total RAM.
Also, you could play with a planner setting, such as random_page_cost, to favor an Index Scan over sequential scans. The random_page_cost setting's default value is 4.0. In high-end SAN/NAS technologies, you could set this value to 3, and for SSD, you could use a random page cost of 1.5 to 2.5. The preceding list of parameters is minimal; in reality, you need to also configure the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access