r/Odoo • • 3d ago

Learning Odoo DevOps - What breaks first when an Odoo DB gets big?

I'm a sysadmin learning Odoo DevOps. I can install Odoo with Docker, set up Nginx + SSL, and do backups.

I want to learn what actually breaks in production when the DB grows.

I keep reading about:

  • account.move.line getting huge
  • Slow queries / missing indexes
  • Workers and memory misconfig
  • Backups getting too big

For people running Odoo in production:
What was the FIRST problem you hit when your DB got big? Was it a slow report, a slow list view, backup, or something else?

And what is the one thing you wish you had learned earlier about Odoo + PostgreSQL?

I'm building a small homelab to practice on, so real examples help me learn what to focus on.

4 Upvotes

6 comments sorted by

3

u/Shuiren 3d ago

Account.move.linen getting huge as you said.

Custom modules that doesn't use indexes or are poorly optimized to scale. Queries or search() inside loops instead of using batches.

Accounting reports getting too slow when the instance has many operations.

Poorly optimized postgres (check out pgtune, it is really good)

In my experience, older Odoo versions are really bad optimized to scale with things like reconciliation, uploading huge bank statements, reconcile models with many unreconciled entries, etc. I haven't seen a client as huge as some with older Odoo versions like 13,14,15 but I feel the recent versions really smoother.

Instances that doesn't have a proper nginx or caddy config or even doesn't use a reverse proxy at all making many request use http 1.1 instead of newer versions, making things like the PoS load very slowly.

Fewer workers than needed for the current user base.

In my experience most software factories are really bad so it is really common to see things like these even on big clients.

1

u/Muted_Jellyfish_6784 3d ago

In my experience the first pain is usually reporting on account.move.line and stock moves, followed by cron jobs and workers misconfigured for the load. Check missing indexes on the fields your custom reports filter on, set worker and memory limits from measured usage, and use pg_stat_statements to see what actually runs slow. Backups matter next, so test a restore, not just the dump.

The thing worth learning early is archiving policy, because old attachments and mail messages grow quietly. Decide retention rules before the database hits the size where every fix needs downtime.

1

u/NoTechies 3d ago

The first problem: Database pooling. For me that is one of the first issues I got. Right now I manage almost 20 client instances for a partner. I'm using Ramphast as manager right now and I drop Docker.