Why Odoo performance tuning starts before you add hardware
A slow self-hosted Odoo is usually fixed by finding which layer is the bottleneck, not by buying a bigger server. If users see slow screens, batch jobs overrun their window, or a go-live needs a sizing baseline, start by measuring where the time goes. Odoo runs on Python and PostgreSQL, so the usual causes are worker configuration, database load, scheduled actions and custom code, and each one calls for a different fix. Adding CPU or memory to a server that is waiting on a slow query or a blocked worker rarely changes the result.
The first question is which process is saturated. Check whether the Odoo worker pool is exhausted during peaks, whether PostgreSQL is busy with long-running or locked queries, whether scheduled actions are competing with interactive users for the same workers, and whether a custom module is making expensive calls on common pages. Each of these leaves a different trail in the Odoo server log, the PostgreSQL statistics and the application profile. Ask your team or partner which of these data sources exist in your environment and who can read them before anyone changes a setting.
This topic covers tuning within a single self-hosted deployment. It is distinct from Odoo high availability, which designs redundancy and recovery, and from security hardening, which controls exposure and access. Some settings overlap with both, so record each change, its reason and its measured effect. Changes made for speed can also affect recovery or security, and those trade-offs should be reviewed with the people who own those areas.
Which Odoo and PostgreSQL settings shape speed
Odoo speed comes from a small set of components working together: the worker processes that serve requests and run scheduled jobs, the memory and time limits applied to each worker, the PostgreSQL server that answers every query, and the layers in front of Odoo that serve files and absorb traffic. Tune them as one system, because a fast database cannot help a worker pool that is starved of memory. Exact configuration keys and defaults must be confirmed against the Odoo version in use before you change anything.
Worker processes and their roles
Odoo runs HTTP workers that handle user requests and cron workers that run scheduled actions. Each worker holds a database connection and memory, so the worker count sets how many requests and jobs can run at once. Check how many HTTP and cron workers your version uses, whether long-polling runs in a separate process, and whether scheduled jobs compete with daytime users for the same capacity. Confirm the worker settings against your release before sizing a server.
Source install docsMemory and time limits per worker
Per-worker memory and request time limits stop a single heavy report or import from exhausting the server or holding a worker hostage. Set them too low and legitimate large exports fail; set them too high and one runaway process can starve the others. Verify the memory and CPU time settings your version exposes, then test them with your largest real reports and imports. Record the values you chose so the upgrade team can carry them forward.
PostgreSQL configuration and connection use
Odoo is built on PostgreSQL, and every worker opens connections to it. Connection limits, shared memory, and query planning settings determine whether the database keeps up under concurrent users. Confirm the connection pooling approach and the PostgreSQL parameters your Odoo version and hosting model require, and review the server's own logs for slow statements. Database tuning is usually the largest lever after worker sizing, so treat it as a planned change, not a guess.
Filestore and attachment storage
Attachments, images and generated documents live in the Odoo filestore on disk, separate from the PostgreSQL data. Slow or remote storage makes every attachment request wait on the network, and a filestore that is not on the same backup schedule as the database leads to broken records after a restore. Confirm where the filestore sits in your deployment, how fast it is under load, and that it is backed up together with the database.
Reverse proxy and static asset serving
In production, a reverse proxy usually terminates TLS, compresses responses and serves static web assets so Odoo workers spend their time on dynamic requests. Misconfigured caching or missing headers force Odoo to regenerate assets on every page load. Confirm which paths your version expects the proxy to serve, how long static assets are cached, and how long-polling connections are routed. Test page load times in a browser after each proxy change.
Scheduled actions and their timing
Scheduled actions run background jobs such as email queues, stock updates and recurring invoices. Many jobs running at the same moment can flood the database and slow interactive users, so their timing matters as much as their count. Review the scheduled actions list in your environment, identify which ones are heavy, and stagger them away from business peaks. Custom scheduled actions deserve the same review as core ones, because they are often the cause of unexplained slowdowns.
Choosing where to tune first: workers, database, cron or code
Pages that feel acceptable for one tester but slow down when many users open forms, lists and dashboards at once usually point to worker capacity or the memory each worker can use. More workers let Odoo handle more requests in parallel, but each worker is a separate process with its own memory use and database connections, so the gain stops once the host or the database runs short. This layer fits when response times climb with concurrent users while single-user tests stay acceptable.
- Worker count: Raising the
workerssetting only helps if the server has spare CPU and memory at peak. Confirm the host can hold the extra processes before changing it. - Memory limits:
limit_memory_softandlimit_memory_hardstop runaway processes, but limits set too low kill requests mid-work. Adjust them with load tests, not estimates. - Operational cost: Worker changes need a service restart, and a higher count raises database connection demand. Plan a maintenance window and watch connection counts afterward.
- Measure first: Record response time percentiles, CPU use, memory per worker and database connection counts during a realistic peak, using the same test script before and after each change.
Check whether the slowdown shows up in host or database metrics first, because adding workers to a saturated database usually makes the problem worse.
Timeouts appear when one request, such as a large import, an expensive report or a heavy recalculation, holds a worker past a time limit set by Odoo or by the reverse proxy in front of it. Users see gateway errors while the server may still be working, which can leave partial results behind. Raising every limit to make the errors disappear is tempting, but it weakens the protection that stops one request from tying up capacity needed by everyone else.
- Proxy and application limits: The reverse proxy timeout and Odoo's
limit_time_realandlimit_time_cpumust agree. A proxy that gives up first produces errors even when Odoo finishes the work. - Background processing: Imports, mass updates and exports usually belong in background jobs with progress tracking. That requires code changes in a custom module, so it is a build cost, not a settings change.
- Code cause: Slow requests often come from per-record queries, ORM loops or computed fields recalculated in list views. Profile the specific request before touching limits.
- Operational cost: Raising time limits needs a restart and a test of the full request path, and it lets a single worker stay occupied longer.
- Measure first: Capture the failing URL, its timestamp, the proxy log entry and the matching Odoo log line, so you can see which limit actually fired.
Confirm the timeout source from logs for one failed request before changing any limit.
Scheduled actions run in the background, but they draw on the same worker capacity and database as interactive users. Mail queues, stock valuation, recurring invoicing and synchronization jobs can slow the user experience when they run during working hours. The first fix is usually scheduling and batching, with dedicated background capacity where the design needs it, before adding general capacity to the whole system.
- Schedule and overlap: List every scheduled action with its frequency and typical runtime. Move heavy jobs outside peak hours and prevent the same job from running twice at once.
- Dedicated cron capacity: Separate cron processes can keep background work off the request path. This changes the deployment layout, so confirm the approach against the documentation for your Odoo version.
- Batch size and commits: Jobs that process everything in one transaction hold locks and memory for a long time. Smaller batches with regular commits take longer in total and need code review and testing.
- Operational cost: Schedule changes are quick to make but need a test run with realistic data, which can take several cycles for jobs that touch large tables.
- Measure first: Use the scheduled action logs and timings for each job, alongside user-facing response times in the same window.
Map cron timing against user peak hours before buying hardware, since the overlap is often the whole problem.
When a report, dashboard or list view is slow no matter how many users are online, PostgreSQL is often doing most of the expensive work. Typical signs are long single queries, sequential scans over large tables and locks held during accounting or stock reporting. Database work, indexing and report design usually have a larger effect here than worker changes, and they carry different risks, especially around memory, locking and maintenance windows.
- Query plans: Use PostgreSQL's execution plan output on the slow query to find missing indexes or large scans. Index creation on large tables needs a planned window, because it can block writes depending on the method used.
- Memory and connections: PostgreSQL memory settings and the Odoo connection limit must fit on the same host. Raising either without checking the total can push the server into swapping.
- Report design: Reports that aggregate years of records may need narrower default filters or summary tables. That is a functional decision the business owner should approve.
- Maintenance health: Stale statistics and table bloat slow queries over time. Review vacuum behavior and table growth with a database administrator before changing autovacuum settings.
- Measure first: Capture the exact SQL behind the report, its execution time and row counts, and test against a copy of production-sized data, since an empty test database hides the problem.
Confirm with query timing that the database is the bottleneck before tuning the application tier.
How to tune an Odoo deployment in sequence
This sequence moves a self-hosted Odoo from guesswork to measured tuning, so each change to workers, PostgreSQL, cron jobs or the proxy is tied to a baseline and confirmed on a copy before it reaches production. The order matters because worker sizing depends on the host, and database settings depend on how many workers are running.
Establish a baseline with logs and monitoring
Before changing anything, collect a week or more of representative data from the Odoo server logs, PostgreSQL statistics, and host CPU, memory, disk and load metrics. Record peak hours, the slowest requests, long-running queries and any memory growth per worker. The work is usually done by the platform engineer with input from the business users who report slowness. The step is done when you can name the three slowest user actions and the host resource that is saturated during each one. Ask your team to confirm which monitoring tools are already in place, since the sequence depends on them.
Size workers and memory limits to the host
Set the number of Odoo worker processes and the per-process memory limits in the server configuration file so the total stays within the RAM and CPU the host can give Odoo and PostgreSQL together. Use the baseline to decide how many concurrent users the host must serve, and leave headroom for the database and the operating system. Confirm the exact configuration keys and recommended ratios against the Odoo on-premise documentation for your version. The check is a load test on a copy of the database where worker recycling and memory limits behave as expected: processes restart when they hit their limits and the host never swaps under the test load.
Tune PostgreSQL connections and memory
Align PostgreSQL connection limits and memory settings with the worker count from the previous step, so the database does not refuse connections or spill sorts and joins to disk under normal peak load. A database administrator usually owns this work, with the Odoo engineer confirming connection counts. Keep changes small and document the previous values. The check is a repeated run of the baseline workload on the test copy, comparing query times and connection counts with the baseline numbers, and confirming that no connection errors appear in the PostgreSQL and Odoo logs.
Separate or schedule cron jobs
Review the scheduled actions in the database and identify those that run long, run often, or compete with interactive users. Move heavy jobs to a time window with low business activity, or run them on a dedicated cron worker so they do not consume the workers that serve users. Confirm with each application owner what each scheduled action does and whether it can run out of hours. The check is that the scheduled action log shows each job finishing within its window during a test run, and that user-facing response times stay within the baseline while the jobs run.
Configure the reverse proxy for TLS, compression and caching
Place a reverse proxy in front of Odoo to terminate TLS, compress text responses, and serve static assets with cache headers, so Odoo workers spend their time on business logic rather than file delivery. Confirm the proxy configuration with your Odoo version's guidance, including how it passes the long-polling and websocket paths. The network or platform team typically owns this step. The check is that static assets are served from the proxy on repeat requests, the TLS configuration passes your security team's review, and page load times for a logged-in user improve against the baseline.
Profile slow requests and custom code
Use the baseline list of slow actions to reproduce each one on a test copy and profile it with Odoo's profiling tools and PostgreSQL query logs. Separate time spent in core modules from time spent in custom or third-party modules, since custom code is often the cause of slow views, computed fields and unbounded searches. The developer who wrote the code should fix or redesign the slowest paths, and the change goes through code review. The check is that each reproduced timing drops after the fix on the test copy, and that the same timing is measured again in production after deployment.
Confirm worker recycling and load behavior
Run a sustained load test that resembles peak business use, with the final worker, memory, database, cron and proxy settings in place. Watch for memory growth that does not level off, workers that are killed mid-request, lock waits in PostgreSQL, and cron jobs that overlap. Repeat the test after any fix in the previous step. The step is complete when the logs show worker recycling happening as configured, there are no unexplained restarts or lock timeouts, and the result is written into a tuning record that the team can reuse at the next upgrade.
How to find slow custom code with profiling
Start with evidence, not guesses. The first step is to find which requests are slow and which custom code runs during them. Check the Odoo server log for requests and queries that take longer than expected, and correlate those timestamps with the users and actions that reported the slowness. On the PostgreSQL side, review the slowest statements and their call counts, because a query that is fast once but runs thousands of times per page is often the real cost. Record what you find before changing anything, so you can prove the fix later. Ask your team or partner to confirm which log level and PostgreSQL statistics extensions are available in your environment, since these depend on how the server is installed and configured.
Run profiling on a test database, never directly on production. The safe approach is a neutralized copy of production data, made with Odoo's database duplication and neutralization, so that test runs use realistic record volumes without exposing live customer data or triggering outgoing emails, payments or integrations. Reproduce the slow action on that copy with the same user role and the same record counts, then profile it with a Python profiler to see which methods consume the time. Look for the two patterns that cause most ORM slowness: N+1 query patterns, where a loop reads a related record one row at a time instead of prefetching or using a grouped search, and computed fields without stored values, which recalculate on every read across large recordsets. Onchange chains deserve the same scrutiny, since one field edit can trigger several dependent recomputations in the form.
Treat every fix to inherited core behaviour as a maintenance decision, not only a performance one. Overriding a core method to skip work or change a computation may make the module faster today, but it binds your code to internals that change at each major version. Document each override, the core method it touches and the reason, and add it to the review list for the next upgrade so the change is re-tested against the new version's code. Ask your implementer to show which overrides were profiled, which measurable improvement each one produced, and how each will be checked in the upgrade test database before production.
Common causes of slowness and how to confirm each
Slow Odoo usually traces back to a small set of causes: memory pressure on workers, database work that scales poorly, background jobs colliding with users, and proxy settings that defeat caching. Each cause leaves a different trace in logs and metrics, so confirm one before changing another setting.
Worker memory causing swapping
When the workers' combined memory limits exceed the RAM available on the host, the operating system starts swapping and requests slow down unpredictably rather than failing cleanly. Compare the configured worker and memory limits in the Odoo configuration file with the host's physical memory, then watch swap activity and resident memory per Odoo process during a busy period. If swap use rises when user traffic rises, the limits are the likely cause. Ask your team to confirm the figures on your own hardware before changing them.
Source installation docsMissing indexes on custom fields
Custom fields added with Odoo Studio or custom modules are not always indexed, so filters and searches on them can force PostgreSQL to scan entire tables. Check the PostgreSQL slow query log for statements that filter on custom column names, then run EXPLAIN ANALYZE on those statements to see whether a sequential scan dominates. Confirm whether the field is used in searches, list filters or domains before deciding on an index, since every index adds write cost.
Scheduled actions at peak hours
Scheduled actions (cron jobs) such as recomputations, imports, mail fetches and report generation can run during working hours and compete with interactive requests for workers and database connections. Review the scheduled actions list and the server log timestamps for long-running cron entries, then overlay them on the periods users report slowness. If the slowdowns line up with a job's run times, move the job to a quieter window or split it into smaller batches.
Unbounded search and export queries
Lists without a limit, exports of all records and reports that load full history can read far more rows than a user will see. Look for requests in the Odoo log that take many seconds and return large row counts, and check PostgreSQL for queries that fetch thousands of rows with no effective filter. Confirm whether the cause is a custom domain, a missing default filter or a user exporting everything, then add filters, pagination or a background export job as appropriate.
Large attachments served through Odoo
Large files stored as attachments and served through the Odoo application tie up workers while the file streams, and they add load to the database when attachment data is read through the ORM. Check which attachments are large, where the filestore is located and whether requests for /web/content routes dominate the slow requests in the log. Confirm the storage configuration for attachments with your administrators, and consider serving static files directly through the reverse proxy where your setup allows it.
Proxy misconfiguration breaking caching
A reverse proxy that does not forward the original host and protocol headers, or that fails to cache static assets, forces every browser request back to the Odoo workers. Compare response headers for static files such as JavaScript and CSS bundles on direct and proxied requests, and check whether the proxy passes long-polling and websocket traffic correctly. If static assets are reissued on every page load, review the proxy configuration with the platform team before adding workers.
On-premise docsHow a user request moves through proxy, workers and PostgreSQL
A browser request enters at the reverse proxy, which terminates TLS and serves static assets directly, then passes dynamic requests to Odoo HTTP workers. Those workers read and write PostgreSQL and the filestore, while cron workers run scheduled actions against the same database. Check each hand-off separately: proxy timeouts and buffering, worker and memory limits in the Odoo configuration, PostgreSQL connection and memory settings, and filestore disk speed, since a slow step in any one of them shows up as a slow page.
Request path from browser through proxy and workers to PostgreSQL and the filestore.
What drives tuning effort and how to keep it down
This table lists the factors that make Odoo tuning take longer or cost more, with a note on how each one raises effort and how to limit it. Read it as a checklist when scoping a tuning engagement, since the largest drivers are usually concurrency, custom code and the number of environments that must be kept in step.
| Driver | Why it raises effort | How to keep it down |
|---|---|---|
| Users and concurrency | More simultaneous sessions and busy workflows (sales orders, shop floor entries, month-end runs) need more worker capacity and reveal lock contention that does not show up in small tests. | Measure peak concurrent users in your own environment before changing limits, and size workers against that figure rather than total headcount. |
| Data volume | Large tables such as accounting moves, stock moves and attachments slow queries and reports, and they make every test run and backup longer. | Archive or purge old data where policy allows, and test reports against a realistic copy so timing reflects real volume. |
| Custom code | Slow custom ORM calls, unindexed fields and computed fields that trigger wide recomputation are often the cause of slow pages, and each one needs profiling. | Keep custom modules small, review loops over records, and profile one module or view at a time so changes stay attributable. |
| Integrations and scheduled jobs | API imports, bank feeds and scheduled actions compete with interactive users for workers and database connections, often running at the same hours. | Schedule heavy jobs outside business hours, batch API writes, and confirm the cron worker count is set separately from web workers. |
| Number of environments | Development, test and production each need matching settings, so every tuning change may have to be repeated and verified three times. | Keep configuration in version-controlled files, and use neutralized database duplicates for test runs so only the settings differ. |
| Compliance evidence requirements | Assessors may ask for documented limits, change records, load test results and log retention, which adds documentation and review steps to each change. | Agree the evidence list before tuning starts, record each change with its before and after measurements, and confirm retention needs with your compliance team. |
How tuning differs by deployment model
How does tuning change on a single VM running Odoo and PostgreSQL?
On a single VM, Odoo workers, the Odoo process and PostgreSQL compete for the same CPU and memory, so tuning is mostly about budgeting that shared capacity. Size the worker count and the per-worker memory limits so the total stays below the VM's available RAM with room for the operating system, the filestore cache and PostgreSQL. Lower PostgreSQL memory settings when the database shares the box, and watch swap use closely, because swapping under load is often the cause of slow requests that look like code problems. Before changing limits, confirm the current values with your own monitoring, since the right numbers depend on the workload and the installed modules.
What changes when PostgreSQL runs on a separate database host?
A separate database host moves the memory and disk pressure out of the application server, so the Odoo side can give more memory to workers while the database host is tuned for its own role. The main new variables are network latency between the Odoo workers and PostgreSQL, connection counts, and the database host's storage speed. Check that the connection pool settings on the Odoo side do not open more connections than the database host can serve, and measure round-trip time from the application host, because many small queries amplify even modest latency. Confirm the approach with your DBA and the PostgreSQL version your edition supports.
Does a containerized Odoo deployment need different performance settings?
The Odoo settings stay the same inside a container, but the container memory and CPU limits become the boundary that worker sizing must respect. If the container limit is lower than the total memory your worker configuration can use, the kernel may terminate processes, which looks like random failures rather than slowness. Set resource limits in the orchestration layer and keep the Odoo configuration consistent with them, and persist the filestore and logs on volumes so that restarts do not change behavior. Check how your container platform handles memory accounting for each process, because a limit that is too tight can cause repeated restarts under peak load.
How does tuning change when Odoo runs multiple workers behind a load balancer?
With several Odoo application servers behind a load balancer, each node needs its own worker and memory budget, and the database becomes a shared limit across all of them. Total connections to PostgreSQL grow with the number of nodes, so the connection budget must be divided across the fleet. Sticky sessions, long-polling routing and the shared filestore also affect how requests are distributed and cached. The full design of a resilient multi-node setup, including replication, backups and recovery testing, is covered in the Odoo high availability topic, so use this item only as a checklist of what changes for tuning.
What should I tune differently in an air-gapped Odoo environment?
In an air-gapped network, profiling tools, monitoring agents, PostgreSQL extensions and any performance patches must be brought in through your approved media process and installed offline. Plan that transfer before an incident, because a slow production system without its diagnostic tools is hard to investigate. Confirm which packages and versions your change control allows, and keep a tested offline copy of the tooling. Tuning values themselves do not change, but the time to verify a change can be longer, so schedule adjustments with your security and operations teams.
Does a Community edition deployment tune differently from Enterprise?
The core worker, memory and PostgreSQL tuning are the same for both editions, because both run on the same Odoo framework. The difference lies in what you can validate and support. Enterprise installs are activated with a subscription code and are supported through the vendor's support channels, while Community deployments rely on your own team or partner for diagnostics. Confirm which edition and plan your organization holds, since the Odoo pricing page states that only the Custom plan can be hosted on-premise or on Odoo.sh.
Does tuning change when Odoo is hosted on Odoo.sh instead of self-hosted?
On Odoo.sh, the platform manages the underlying infrastructure, so you cannot change PostgreSQL server settings or the operating system the way you can on your own servers. Tuning shifts toward application-level work: scheduled actions, custom code efficiency, and the worker settings the platform exposes. This is useful context for the hosting decision in the Odoo.sh versus on-premise topic. Confirm the exact settings available on Odoo.sh with the current platform documentation before planning changes.
Who should run performance tuning on a self-hosted Odoo, and what should I ask a partner?
Your infrastructure team usually owns the server, database and proxy settings, while your Odoo developers own custom code and scheduled actions. A partner can take on profiling, tuning and verification as a fixed-scope piece of work. When requesting a quote, ask for the baseline measurements to be captured first, the list of settings to change, the test plan on a database copy, the rollback steps, and what is delivered at the end. DeployOpen implements, hardens and supports self-hosted Odoo inside the client's own infrastructure, so the work can be scoped to your environment and agreed in writing before it starts.
Access and secrets to protect while tuning
Performance work touches the parts of an Odoo deployment that hold the most sensitive material: configuration files, logs, profiling output and the administrative tools that manage databases. The cards below cover the places where a tuning session can quietly expose credentials or data, and the controls to check before and after each change.
Database credentials in configuration files
The Odoo configuration file usually holds the PostgreSQL user and password that the Odoo server uses to connect. Tuning often means editing this file for worker counts and memory limits, so the file is copied, shared and pasted into tickets more than it should be. Check that the file is readable only by the service account, that it is excluded from shared repositories and support bundles, and that the database role has only the rights Odoo needs. Confirm the exact configuration keys and file locations for your Odoo version in the documentation.
Source installation docsProfiling and debug output exposure
Profiling records can include SQL statements, record values, user names and request paths that reveal business data. Enabling detailed profiling on a production server, or leaving it on after a tuning session, creates a copy of that data on disk. Limit profiling to a staging copy where possible, restrict who can read the output directory, and delete captured files once the analysis is finished. Confirm which debug settings your version exposes and whether they are safe outside development.
Admin and developer access to production logs
Log files record errors with the names of records, users and sometimes the data that caused a failure. During a slowdown, many people ask for log access at once, and each copy spreads the data further. Decide who reads production logs, grant read access through a named role rather than shared accounts, and record each access during an incident. Check the log level in use, because verbose logging on production can capture more than the investigation needs.
Master password and database manager
The master password protects the Odoo database manager, which can create, duplicate, restore and drop databases. Anyone who knows it can take a copy of production data or remove a database entirely. Tuning and maintenance windows are when the manager is most often opened, so set a strong master password, keep the database manager disabled on production when it is not needed, and restrict access to it at the reverse proxy. Confirm the current setting names and the recommended production configuration in the documentation.
On-premise docsTest copies with live data
Tuning experiments need realistic data volumes, so teams often duplicate production databases to a test server. A copy that keeps customer names, bank details and user passwords carries the same risk as production, often with weaker controls. Use the documented database duplication options that neutralize the copy, such as disabling outgoing mail and scheduled actions, and confirm that credentials and integration tokens are reset. Record who holds each copy and when it is deleted.
How to prove the tuned system is fast and fails safely
The only proof that tuning worked is a before and after measurement taken under load that resembles production. Run load tests against a neutralized copy of the production database, so test users, outgoing email and payment connectors cannot reach real people or systems. Model the user counts, concurrent sessions and the heaviest workflows (quotations, stock moves, month-end reports) that the business actually runs, not a generic page crawl. Record response times for each of those workflows, the worker memory and CPU on the application and database hosts, and the PostgreSQL slow query output, then repeat the same test after every change. Change one setting at a time, so a regression can be traced to the change that caused it.
Failure testing matters as much as speed. Deliberately restart a worker during a long request and confirm that the user sees a clean error rather than a corrupted record, and check that the reverse proxy timeouts and the Odoo worker timeout settings produce the failure you intended. Under deliberate overload, confirm that the system queues or rejects requests instead of crashing the database, and that every transaction that reported success is present after recovery. Reconcile a sample of those records against the source documents. Confirm that scheduled actions (cron jobs) finish inside their expected windows when run during peak hours, and that a job that overruns does not block the others. Note the time each job takes so the schedule can be checked again after each upgrade.
Acceptance targets must come from the business owner, not the tuning team. The owner of order-to-cash, inventory or payroll knows which response time and which batch completion time are tolerable for their users, and which failure is unacceptable, such as lost postings. Ask the owner to sign off the targets before testing starts, and record what each test was judged against. Ask any implementation partner to state in its written scope how many test rounds are included, what load profile is used, and who owns the results. Repeat the full test after each major version upgrade, because the performance profile of a new release can differ from the one you tuned.
What to monitor, document and revisit after tuning
This table lists what to watch, record and re-check once a self-hosted Odoo is tuned, with the trigger for each review. Read each row as a standing task: the signal to track, the setting to document, and the event that means the tuning needs another look. The main takeaway is that tuning is a recurring activity tied to module changes and version upgrades, not a one-time configuration.
| Area | What to watch or record | When to revisit |
|---|---|---|
| Worker memory | Resident memory per worker process over time, and whether workers are recycled by the memory limit | After adding modules, changing worker counts or changing the memory limit |
| Request latency | Response times for key screens such as sales orders, inventory moves and month-end reports, measured by users and by the proxy log | After each module change and before each go-live of a new app |
| PostgreSQL connections | Active connections against the configured limit, and connection peaks during cron runs and business hours | After raising worker counts or adding a second Odoo server |
| Slow queries | Queries above an agreed duration threshold, captured with PostgreSQL logging and reviewed for new patterns | After custom code is deployed and after each version upgrade |
| Scheduled actions | Duration and failure rate for each cron job, plus overlaps with other jobs and with peak user hours | When a job grows with data volume or when a new automated action is added |
| Log retention | How long Odoo and PostgreSQL logs are kept, where they are stored and whether they can be searched for a given time window | When retention rules change for audit or incident response needs |
| Settings per environment | A written record of worker counts, memory and time limits, PostgreSQL parameters, proxy timeouts and cron schedules for each environment | Every configuration change, and whenever a test copy is refreshed from production |
| Supported version window | Current Odoo version, its standard support end date from the vendor documentation, and the planned upgrade date | Each time the vendor publishes support dates, and at least before the window closes |
Can our team tune Odoo performance, or do we need a partner?
What does Odoo performance tuning work cost and what drives the price?
The price depends on how much of the work is configuration of your own server and database, and how much is diagnosis of custom code. Tuning workers, memory limits, PostgreSQL settings, the reverse proxy and scheduled actions is usually a bounded task. Finding slow custom modules with profiling, and fixing them, takes longer because it depends on how much custom code you have and how it was written. Cost also rises with the number of environments you must test (staging, load test, production) and with the number of performance problems to investigate. Ask for a fixed-scope quote that lists the environments, the profiling sessions, the changes in scope and the retest. Note that any recurring hosting or monitoring cost is separate from the one-time tuning work.
How long does Odoo performance tuning take?
Duration depends mainly on the bottleneck. A server with too few workers or a memory limit set too low can often be corrected quickly once it is measured. A slow query in a custom module, a scheduled action that locks tables, or a reporting view that scans large tables can take far longer, because each needs reproduction, profiling, a code change and testing. Duration also depends on whether you have a load profile to test against. Without one, the work becomes a series of guesses. Ask the partner to state which bottlenecks are in scope, how each will be measured before and after, and what happens if the first diagnosis is wrong.
What does our team need to provide for performance work?
The work needs four things from your side. First, access to the server, the Odoo configuration, the PostgreSQL instance and logs, ideally in a controlled way that your security team approves. Second, a test copy of the production database, with personal data handled according to your policy. Odoo documents database duplication with neutralization for test copies, which is useful here. Third, load profiles: which users run which workflows, at what times, and how many concurrent sessions are normal. Fourth, business acceptance criteria, such as the maximum acceptable time for sales order confirmation or month-end reports. Without these, it is hard to know when the work is finished.
Can an internal team tune Odoo performance without a partner?
Yes, a team with Odoo and PostgreSQL experience can tune the configuration, and many do. The internal team usually needs to be strong in three areas: reading Odoo worker and memory settings, interpreting PostgreSQL query plans and locks, and profiling Python code. The harder question is capacity and independence. Performance work competes with support and project work, and someone outside the team often finds issues that insiders have stopped noticing. A partner is most useful when the bottleneck is in custom code, when you need a repeatable load test, or when you want a documented result for your change board. Compare the internal effort with a written scope before deciding.
How do performance changes interact with Odoo upgrades?
Tuning changes and custom code fixes must be kept in version control and re-checked at each upgrade. Custom modules that you optimized for one version may behave differently after a major release, and some settings or internal methods change. Odoo's standard support window covers three years after a major release, and on Odoo Online and Odoo.sh major version upgrades are mandatory every two years according to the upgrade documentation. Plan performance baselines so you can compare the upgraded test database against the current production behavior. Upgrade tests should include the same load profile used for tuning, so a regression is found before go-live.
Which engineering checks should we run to confirm a tuning change worked?
Measure before and after each change, using the same load profile and the same data volume. Record worker utilization, memory use, PostgreSQL slow query output, lock waits and the response times for the business transactions you agreed on. Check the Odoo logs for long-running requests and for errors from scheduled actions. Confirm that the reverse proxy passes timeouts and headers correctly, and that cached static assets are served as intended. Repeat the test after any change to the Odoo version, the modules or the database size. Keep the results with the change record so that another engineer can explain why a setting was made.
How do we request a fixed-scope quote for Odoo performance work?
Ask for a written scope that names the environments, the bottlenecks to investigate, the profiling sessions, the configuration changes, the code changes you approve, the load tests and the retest. Also ask what you must provide, which of the points above you are responsible for, and how change control works. DeployOpen plans, implements, hardens and supports self-hosted Odoo inside the client's own infrastructure, and most engagements are fixed-scope with scope, deliverables and timelines agreed in writing before work starts. Request a quote from that written scope, so the price reflects your actual environment rather than a generic estimate.
How DeployOpen scopes, tunes and hands over Odoo performance work
DeployOpen approaches Odoo performance tuning and workers as a fixed-scope engagement inside your own infrastructure. We measure the current setup, change one layer at a time, and document each setting so your team can operate and review it after handover.
How we scope
- Written scope lists the Odoo version, hosting model, worker and memory settings, and databases in question before any change is made.
- We confirm which custom and third-party modules run on the server, since their code often drives slow requests.
- We agree in writing which measurements, load tests and deliverables are included, so the quote follows from a defined piece of work.
How we build
- We baseline response times, worker utilization and PostgreSQL activity on a copy of production, not on the live system.
- We tune worker counts, memory limits, PostgreSQL settings, scheduled actions and reverse proxy caching, then retest each change separately.
- We profile slow custom code and report the functions responsible, with proposed fixes that fit the client's upgrade plan.
How we hand over
- You receive a configuration record listing every changed setting, its previous value, the reason for the change and the test that confirmed it.
- Runbooks explain how to restart workers, review scheduled actions, rotate logs and repeat the load test after future changes.
- Knowledge transfer sessions walk your administrators through the profiling output and the decisions behind each tuning step.
How we support
- Engagements are fixed-scope, and ongoing support, upgrades and continuous testing are available as retainers.
- Retesting after each Odoo version upgrade or major custom module release keeps tuning aligned with the current codebase.
- Confirm with DeployOpen which support window, response expectations and retest cadence apply before you sign a retainer.

