mirror of
https://github.com/postgres/postgres.git
synced 2025-08-24 09:27:52 +03:00
Increase the default value of effective_cache_size to 4GB.
Per discussion, the old value of 128MB is ridiculously small on modern machines; in fact, it's not even any larger than the default value of shared_buffers, which it certainly should be. Increase to 4GB, which is unlikely to be any worse than the old default for anyone, and should be noticeably better for most. Eventually we might have an autotuning scheme for this setting, but the recent attempt crashed and burned, so for now just do this.
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
#define DEFAULT_CPU_INDEX_TUPLE_COST 0.005
|
||||
#define DEFAULT_CPU_OPERATOR_COST 0.0025
|
||||
|
||||
#define DEFAULT_EFFECTIVE_CACHE_SIZE 16384 /* measured in pages */
|
||||
#define DEFAULT_EFFECTIVE_CACHE_SIZE 524288 /* measured in pages */
|
||||
|
||||
typedef enum
|
||||
{
|
||||
|
Reference in New Issue
Block a user