22 Ekim 2024 Salı

postgresql.conf İyileştirmeleri

Örnek
Şöyle yaparız
# Memory settings
shared_buffers = 16GB
work_mem = 64MB
maintenance_work_mem = 2GB
effective_cache_size = 48GB

# Connection settings
max_connections = 500

# Checkpoint settings
checkpoint_segments = 32
checkpoint_completion_target = 0.9

# WAL settings
wal_buffers = 16MB
max_wal_size = 4GB

# Logging settings
log_min_duration_statement = 5000  # Log queries taking longer than 5 seconds