When a client calls us and says "Odoo got slow," the honest first answer is: slow compared to what, and slow where. A database that takes three seconds to open a sales order is a different problem from a cron job that silently stops emails from going out. Odoo performance tuning is not one setting you flip. It is a short list of usual suspects, checked in order, before any configuration changes.
We have seen the same request turn into the wrong fix more than once. Someone doubles the worker count and restarts the server. The system feels fine for a day because the restart itself cleared memory and the cron queue. The underlying cause is still there a week later. Diagnosing first avoids that cycle.
Odoo performance tuning starts with what "slow" actually means
Before touching workers or cron, we ask for specifics. Which screen, which action, what time of day, how many concurrent users. A kanban view that takes eight seconds to load for one person at 2 a.m. is a different investigation than an invoice list that crawls for twenty people during month-end close.
We also separate two kinds of slowness that get lumped together:
- Interactive slowness — a user clicks and waits. This points to workers, database indexes, or a heavy view.
- Background slowness — automated emails, stock alerts, or scheduled reports run late or not at all. This points to cron configuration.
Mixing these up wastes time. Raising worker count will not fix a cron job that is scheduled to run every five minutes and takes eleven. For more on how automated actions can silently misfire, see our piece on automated actions and stock alerts.
Workers are the most misunderstood part of Odoo performance tuning
Odoo in production mode runs multiple worker processes. HTTP workers handle user requests, and cron workers handle scheduled jobs on a separate track. A commonly cited starting formula is (CPU cores × 2) + 1 HTTP workers. Cron workers, set through max_cron_threads, are added on top of that number as dedicated processes, not carved out of it. A 4-core server, for example, would typically run 9 HTTP workers plus 1 to 2 cron workers running separately.
That formula is a starting point, not a target. We treat it as a hypothesis to test.
| Symptom | Likely cause | What we check |
|---|---|---|
| Pages slow for everyone at peak hours | Too few HTTP workers | Concurrent user count vs. worker count |
| Server swapping, overall sluggishness | Too many workers for available RAM | Memory per worker × worker count vs. total RAM |
| Scheduled actions run late | Too few cron workers, or one long cron blocking others | Cron job duration and frequency |
| One user's action freezes the whole system | Single worker tied up on a heavy query | Database query log during that action |
The trade-off is real. Each worker is a separate process holding its own memory footprint, roughly a few hundred megabytes depending on installed modules. Adding workers on a server with limited RAM moves the bottleneck from CPU wait time to memory swapping. That is often worse than the original symptom. We size worker count against actual server resources, never against a formula applied blindly.
Cron jobs: frequency, duration and what they touch
Scheduled actions are where a lot of hidden load lives. A cron job that recalculates stock valuation across every warehouse, run every ten minutes on a large catalog, can quietly consume a worker slot for most of its cycle. A few practical questions are worth answering for each active cron job:
- How long does it take to run, on average and on a bad day.
- How often is it scheduled, and does that match the actual business need.
- Does it lock tables that interactive users also need.
A cron job scheduled "just in case" every few minutes, when the underlying report is only reviewed once a day, is a common and avoidable drain. We review the scheduled actions list (Settings → Technical → Scheduled Actions, with developer mode on) and disable or re-time anything that does not match real usage. Custom automations tend to compound this same problem over time.
Database maintenance in Odoo performance tuning
A database that has run for several years, with no archiving and no vacuuming, carries weight that slows every query, not just the obvious ones. A few maintenance habits worth checking on long-running installations:
- Archive, do not delete, old records. Archived sales orders, old messages and logged emails still count toward table size and index size even when hidden from view. Archiving reduces what shows in the UI, but the underlying rows remain. For genuinely stale data, periodic deletion with a backup first is sometimes the better call.
- Vacuum and reindex on PostgreSQL. Autovacuum runs by default, but on databases with heavy write activity it can fall behind. A manual
VACUUM ANALYZEafter a large cleanup job often brings a noticeable improvement. - Check mail.message and mail.followers growth. These tables grow quietly and are rarely cleaned, since every chatter log entry is a row. On databases several years old, this is frequently the single largest table.
- Review ir.logging and ir.attachment. Debug logs and old attachments left on the filesystem or database can bloat backups and slow restores, even if they do not directly slow daily use.
None of this replaces proper server sizing. Database maintenance buys back performance that was lost to neglect. It does not create headroom that was never there.
Heavy views, reports and Odoo performance tuning
The third usual suspect is a view or report pulling more data than the screen needs. A list view with no default filter, opened on a database with two hundred thousand invoices, forces Odoo to compute and render far more than a user will ever scroll through. Common fixes, roughly in order of how often we use them:
- Add a sensible default filter (current fiscal year, current stage) so the initial load is bounded.
- Move computed fields that are expensive to calculate from
relatedorcomputewithoutstore=Trueto stored fields, recalculated on write instead of on every read. - Check custom fields added through Studio or a module for missing database indexes, especially fields used in filters or group-by.
- For dashboards and pivot views, check whether the underlying query can be limited by date range by default rather than querying the full history.
We covered the dashboard-specific version of this in our earlier guide on Odoo dashboards and pivot views. The same principle holds for ordinary list and kanban views. Unfiltered access to a large table is the quiet cause of a surprising number of "the whole system is slow" complaints.
Putting an Odoo performance tuning diagnosis together
In practice we work through these steps in a fixed order. Each one either resolves the issue or narrows where to look next.
- Confirm whether the slowness is interactive or background (workers vs. cron).
- Check server resource usage (CPU, RAM, disk I/O) at the moment of the reported slowness.
- Review scheduled actions for duration and frequency mismatches.
- Check database size, last vacuum, and the size of
mail.messageandir.attachment. - Open the specific slow view with the Odoo developer tools query count visible. Look for unfiltered large reads or missing indexes.
Only after this sequence do we change a setting. A server upgrade, a worker count change, or an index addition made before this review is a guess. Guesses on a production ERP system tend to cost more time than the diagnosis would have.
One limitation worth naming honestly: tuning workers and cron buys headroom, but it cannot compensate for a genuinely undersized server or a module doing something structurally wasteful, such as an automation that recomputes the same field on every save of an unrelated record. In those cases the fix sits in the code or the module configuration, not in odoo.conf. If performance issues persist after the checks above, that is usually the next place to look. It is the kind of review we run as part of ongoing Odoo support rather than a one-time fix, since server load and module usage both shift as a business grows.



