Home / Insights / Performance
Performance

PostgreSQL tuning basics for business applications

The database settings and habits that keep ERPs and web apps fast as data grows.

By the INSABHI team6 min read

PostgreSQL powers many ERPs and business applications, including Odoo and many custom systems. It is fast and reliable, but default settings are conservative. A few changes, guided by measurement, often deliver dramatic improvements.

Measure first

Common improvements

AreaTypical action
IndexesAdd indexes for frequent filters and joins; remove unused ones
MemorySize shared buffers and work memory for your server and workload
ConnectionsUse a pooler such as PgBouncer instead of hundreds of direct connections
MaintenanceMake sure autovacuum keeps up on busy tables
Data growthArchive or partition very large historical tables

Do not forget the application

Many slow queries come from application code, such as loading records one by one in a loop. Fixing the code often beats any database setting.

Read: Why is my ERP slow?

Keep reading

More insights

Have a project in mind?

Tell us what you need. You will get a clear plan, timeline and estimate within 48 hours, free.

Start the conversation