When an Odoo performance audit is worth commissioning
Users report slow screens, reports time out, or scheduled jobs fall further behind each week, and the team cannot tell whether the cause is the application server, PostgreSQL, a custom module or the volume of data in the database. A performance audit separates these causes and returns a prioritized fix list, so the team fixes the largest contributor first instead of tuning settings at random. It is worth commissioning when the symptoms are growing, when a recent upgrade, module install or data import coincides with the slowdown, or when the internal team has already changed a setting and seen no clear result.
Community and Enterprise both run on the same Python and PostgreSQL stack, so the review applies to self-hosted installs of either edition. The layers reviewed are the same in both cases: the worker and proxy setup, the database server and its configuration, the code paths behind key screens, and the custom modules added on top. Odoo Online and Odoo.sh customers have less control over these layers, because the hosting provider runs the infrastructure and limits what can be changed. For those customers, the audit still helps, but the fix list will separate what the customer can change from what must go to the provider or to Odoo support.
Before commissioning an audit, confirm three things with your own team: which Odoo version and edition you run, whether you can access the server, PostgreSQL and logs directly, and which screens or jobs users complain about most. The Odoo standard and extended support documentation also helps here, because a version that has left standard support will affect which fixes are available. Ask the auditor to state in writing what evidence they will collect and which changes they will test on a copy before recommending them.
How the audit sequence runs from deployment to fix list
The sequence moves from the facts about how Odoo is deployed to the database, the screens and the custom code, then ends in a ranked fix list the client can act on. Each phase closes with a named check so the next phase starts from evidence.
Collect deployment and worker facts
The auditor records the Odoo version, edition, hosting type (self-hosted, Docker or Odoo.sh), the worker and process configuration, the reverse proxy in front of Odoo, the database host and the installed custom modules. Without the exact version, the audit cannot tell which performance behavior belongs to Odoo and which belongs to custom code. The step is complete when the team has a written configuration record that the client has confirmed against the running servers, including the worker counts, time limits and memory limits actually in effect.
Check PostgreSQL health
The auditor reviews the database server: connection counts against the worker limits, memory settings, autovacuum activity on the busiest tables, slow query logging output, index use on frequently filtered fields, and whether the database shares storage or hardware with other services. Findings are recorded with the query or metric that supports them. The step closes when every database finding is either confirmed with evidence or marked as ruled out, so later profiling does not chase a problem the database is causing.
Reproduce the slowest key screens
Working with the client, the auditor lists the screens and actions users describe as slow, such as sales order confirmation, invoice posting or inventory moves, and reproduces each one on a staging copy with a realistic data volume. Reproduction on a neutralized copy keeps production data out of the audit. The step is complete when each reported slow action can be triggered on demand and its timing is recorded, or when the team documents that it cannot be reproduced and why.
Profile requests with the built-in profiler
For each reproduced screen, the auditor enables the Odoo profiler, records the slow request and reads the SQL count and the call stack. The question is whether time goes to database round trips, to Python loops in standard Odoo code, or to a custom module. The step is complete when each slow request has a profile attached and each hot spot is tagged as standard Odoo, custom code or database, with the profile file kept as evidence.
Review custom module code
The auditor reads the custom modules that appear in the profiles, looking for queries inside loops, repeated searches on the same records, computed fields without stored values or proper dependencies, unbounded record reads, and overrides that run heavy logic on every write. The client should confirm which modules were built by a partner and which were installed from the Apps Store or the Odoo Community Association. The step closes when each flagged code path has a file, a line range and a short explanation of its cost.
Assess data growth on large tables
The auditor measures row counts and table sizes for the largest models and checks whether the slow screens scale with that growth. Tables such as mail messages, stock moves, accounting lines and custom log records often drive the cost of list views and reports. The auditor also checks whether archiving, retention or indexing decisions exist. The step is complete when each large table is listed with its size, its growth trend if the client can provide one, and whether the slow screens read from it.
Rank fixes by user impact and effort
The auditor combines the evidence into one list. Each fix is scored by how many users it affects, how often the affected action runs, and the effort to change it, including whether the change needs a custom module update that must survive the next Odoo upgrade. The list is ordered so that database and configuration fixes with low effort come first, and code changes follow with a test plan. The step is complete when the client signs off the ranked list and each item names the check that will prove it worked.
What each area of the review examines
This area checks how Odoo is started and how much work it is allowed to do at once. A single slow request often looks like a database problem, but it can also come from too few worker processes, a cron thread count that leaves scheduled jobs queued behind user traffic, or a time or memory limit that cuts long operations short. The reviewer compares the running configuration with the server's actual capacity and with the traffic pattern users report.
- Process counts: the number of worker processes compared with CPU cores, available memory and concurrent users.
- Cron threads: whether scheduled actions have enough threads to finish, or whether long jobs block the others.
- Time and memory limits: the per-request limits that stop long reports or imports, and whether users see timeouts as a result.
- Proxy timeouts: the reverse proxy read and connect timeouts that can close a request before Odoo returns it.
- Process restarts: worker restarts recorded in logs, which can point to memory pressure or crashes.
Confirm the configuration file in use, the host sizing and the exact Odoo version with the team that runs the server before changing any value.
This area checks whether the database can serve the number of connections and queries that Odoo sends. Odoo opens database connections for each worker, so the connection count, memory settings and autovacuum behavior on busy tables all affect response times. The review also looks at whether the database has indexes that match the fields users search and sort on, including fields added by custom modules.
- Connections: the number of active and idle connections compared with the worker count, and whether connections queue or fail.
- Memory settings: how the shared buffers, work memory and maintenance memory settings fit the server's memory.
- Autovacuum on busy tables: whether dead rows build up on high-write tables such as stock moves, mail queues or logs.
- Slow query logs: the statements that run longest or most often, captured over a representative period.
- Indexes on custom fields: whether fields used in searches, domains and record rules have indexes that the query planner can use.
Ask for a slow query log covering a normal business day and the current PostgreSQL version. Setting values should be decided from measured data, not copied from a generic guide.
This area takes a few screens that users describe as slow, such as a sales order, a stock move list or an invoice form, and records what one request does. Odoo's built-in profiler shows how many SQL statements the request runs and where the time goes in Python. The goal is to separate work that standard Odoo code does from work added by custom modules or customizations.
- SQL counts: the number of queries per request, and whether the same query repeats with different arguments.
- Flame graphs: the call stack timing, used to find which functions take the most time.
- Standard versus custom code: each hot path labeled as core Odoo, OCA, Apps Store or in-house code.
- Screen selection: the screens chosen with the business owners, so the review covers the work that matters most to users.
- Repeat runs: recordings made more than once, with and without cache effects, so one unusual request does not drive the findings.
Ask for the list of profiled screens, the recordings and the exact data volume each screen was tested with. A profile recorded on an empty test database will not show the same behavior as production.
This area reads the code that the organization has added to Odoo. Custom modules often cause slowness through patterns that work on small data sets and fail as records grow. The review looks at how the code loads related records, how computed fields are stored and searched, and whether searches return an unbounded number of rows.
- N+1 queries: loops that run a query for each record instead of loading related records in one step.
- Compute fields without stored values: computed fields that recalculate on every read, or that are used in searches without being stored and indexed.
- Unbounded searches: search calls without a limit, or list views that load every record before filtering.
- Overridden core methods: changes to standard methods that run on every save or every read, including those added by inheritance.
- Scheduled code: custom cron jobs that scan whole tables on every run.
Ask for the list of custom modules, their versions and the developer who maintains each one. Findings should name the file and method so the developer can reproduce and test the change.
This area measures how much data the system holds and how fast it is growing. Some tables grow with every sale, message or log line, and their size affects backups, restores, staging copies and query times. The filestore, which holds attachments and generated files, grows separately from the database and has its own retention needs.
- Table sizes: the largest tables in the database and their growth over recent months.
- Filestore size: attachment and generated file volume in the data directory, and whether old files are still needed.
- Log retention: how long logs are kept and where they are stored, so logs do not fill the disk that PostgreSQL uses.
- Mail queue retention: outgoing and failed messages that remain in the database and slow down related queries.
- Archive and purge rules: whether old records have an agreed retention policy, and who approves deleting them.
Ask for the size of the database and filestore, the growth trend and the current retention rules. Purging data is a business decision, so the review should record the options and leave the approval to the data owner.
Common causes of slow Odoo that the audit tests for
Slow Odoo usually traces back to a few recurring causes, and they often compound each other. A worker setup that is too small makes every slow request queue behind the next, while a custom module that issues many queries per record multiplies the cost of each screen. The audit confirms each cause with evidence from logs, the profiler and PostgreSQL statistics before any fix is proposed.
Worker setup under the load
The audit compares the deployment's worker configuration with how the server is actually used. Odoo's multi-processing server runs a fixed number of workers, and when requests arrive faster than workers free up, users wait in a queue that is visible in the server log. Check the configured worker and cron thread counts, memory and CPU on the host, and whether long-running requests hold workers for minutes. Look for worker timeouts and restarts in the log. A worker pool that is too small for the concurrent users shows up as uneven, bursty latency rather than uniformly slow pages.
Connections exceeding what PostgreSQL serves
Each Odoo worker holds database connections, so the total can exceed what PostgreSQL is configured to accept or what the server can handle without memory pressure. The audit reads the connection count from pg_stat_activity at peak times and compares it with the PostgreSQL max_connections setting. Errors such as too many clients in the log, or many idle connections from workers that never release them, point to a connection budget that no one sized against the worker count. Connection pooling is often the fix, but only after the budget is understood.
Custom module queries per record
Custom code often runs a query inside a loop, so a list of 500 records triggers 500 extra reads before the page renders. The profiler shows this as a high SQL count for one request, with the same query pattern repeated and the call stack pointing into the custom module. The audit separates these bottlenecks from standard Odoo code, which is usually not the problem. The per-record query pattern is the most common custom-code finding, and the fix is usually batching reads or using computed fields with proper dependencies.
Missing indexes on custom fields
Fields added through Studio or custom modules are not always indexed, and a search or filter on them forces PostgreSQL to scan the whole table. The audit looks for slow queries in the PostgreSQL log, reads execution plans with EXPLAIN ANALYZE for the queries the profiler reveals, and checks pg_stat_user_tables for sequential scans on large tables. A sequential scan on a large table filtered by a custom field is a strong sign that an index is missing. Each index adds write cost, so the audit checks which fields users search and sort by before recommending one.
Scheduled actions competing with users
Scheduled actions run in the same database as interactive work, and a long job that recalculates stock or sends mail in bulk can hold locks and consume workers while users are online. The audit reads the cron logs for job durations, checks which scheduled actions run at business hours, and looks for lock waits in pg_stat_activity that line up with slow user screens. Timing the same screen with and without a running job is a simple way to confirm the link. A long job overlapping peak hours is a scheduling and batching problem, which is often cheaper to fix than a hardware upgrade.
Unarchived data growth
Tables such as mail messages, log entries, stock moves and old sessions keep growing when nothing archives them, and queries that were fast at launch slow down as row counts rise. The audit measures table sizes and row counts in PostgreSQL, checks how the slowest screens filter by date or state, and confirms whether the query plans still use the right indexes as the data grows. Ask the business which records must stay searchable and for how long. Growth in tables that nobody archives is often the reason a database that was fast a year ago is slow now, and the fix is a retention decision as much as a technical one.
Audit scope options and when each fits
This table compares three ways to scope an Odoo performance audit: a focused review of one slow screen, a full-stack review, and a recurring review after upgrades. Each row shows what the option covers, when it fits, and what your team must provide before the written, fixed-scope agreement is signed. Use it to match the scope to the problem you have today.
| Scope | What it covers | When it fits | What the client must provide |
|---|---|---|---|
| Focused screen audit | One slow screen or workflow, its profiler traces, the custom module code behind it, and the SQL it generates | Users report one screen, report or action is slow and the rest of the system is acceptable | Named screen or action, steps to reproduce, a test database copy, and access to the custom module repository |
| Full-stack review | Deployment and worker setup, PostgreSQL health, profiling of key screens, custom module code, data growth, and a prioritized fix list | Slowness is widespread, the cause is unclear, or the system has grown through several customizations and data loads | Architecture and hosting details, server and database access for read-only inspection, a list of key business processes, and named owners to answer questions |
| Post-upgrade review | Comparison of behavior before and after a version change, custom modules checked against the new version, and regressions in slow paths | Recent major version upgrade, or a planned one, where custom code or data volume may behave differently | Pre- and post-upgrade test databases, upgrade notes, the list of custom and third-party modules, and timing of the cutover |
| Recurring review (retainer) | Periodic re-check of performance trends, new custom code, data growth and the status of the prioritized fix list | Platform changes often, several teams ship custom code, or growth makes slowness recur | A standing contact, access to change logs or release records, and agreed review cadence set in the retainer terms |
| Fixed-scope agreement | Scope, deliverables and timeline are written before work starts; findings are delivered against that scope | Any level above, so budget and expectations are clear before the review begins | A signed scope that lists systems, screens, modules and deliverables, with changes handled as written amendments |
Where the slowness can sit in a request path
The diagram starts with a user's browser request passing through the reverse proxy to Odoo HTTP workers, where custom module code runs and calls PostgreSQL, with an optional read replica and the filestore alongside. Cron workers and the mail queue are drawn as separate paths that also load the database, so a slow screen and a slow nightly job can have different causes. Check each layer in turn: proxy timeouts and buffering, worker count and request time, query counts from custom code, primary and replica load, and filestore access.
Audit checkpoints sit at each layer, and cron and mail also load the database.
How the prioritized fix list is built and used
Each finding in the audit is recorded as a row with four parts: the evidence that shows the problem (a profiler recording, a slow query from PostgreSQL logs, a worker log line, or a measured screen timing), the screens or processes it affects, an estimate of user impact described in terms of who is affected and how often, and the change required to fix it. The list is then ranked by impact against the effort and risk of the change, so the top items are the ones that relieve the most users for the least risk. Ask for this format from any partner, and ask them to state which evidence they reproduced and which they only inferred. Any impact estimate that cannot be traced back to a recording or log should be marked as unverified.
Fixes fall into two groups that should be handled differently. Configuration changes cover worker counts, limit_time_cpu and limit_time_real, PostgreSQL memory and connection settings, and replica or cache settings. They can usually be applied and reverted without a code release, but they still need a before and after measurement so the effect is known. Code changes cover custom module queries, compute fields, record rules and view logic. These need unit tests, a review, and a plan for the next Odoo major version, because the same code will be ported during the upgrades that Odoo's support windows require. Confirm with the partner which items they classify as configuration and which as code, since that split drives the testing budget.
Custom module fixes must survive future Odoo version upgrades, so each one should be written against documented extension points such as inheritance rather than copies of core methods, and each should carry a test that fails if its behavior changes. Every change, configuration or code, should first be applied to a staging copy refreshed from production with neutralization, then timed against the same screens used in the audit. Only after the staging result matches the expected gain should it go to production, and each production change should be logged with its date and the measured result so the next audit starts from a known baseline.
Security and access considerations during a performance review
A performance review needs more access than most reviewers are given day to day, and that access touches production data, logs and debug features. The cards below cover what the auditor should ask for, how to keep sensitive data out of findings, and which changes to avoid on a live system.
Read-only database access only
The auditor needs to read PostgreSQL statistics, table sizes, index usage and running queries, not change data. Ask for a dedicated read-only role with access to the statistics views and the Odoo database, and confirm that it cannot write to business tables. Record who holds the role, when it was granted and when it is removed at the end of the review. Avoid using the owner account that Odoo itself connects with.
Profiler access in developer mode
The built-in profiler is enabled from developer mode, and profiling records request detail, including SQL text that can contain customer names, amounts or identifiers. Agree in writing which user accounts may turn it on, for how long, and on which database. Turn it off when the recording is saved, and confirm that the review does not require any group or access rule changes to use it.
Production data in logs and profiler output
Server logs, profiler recordings and query samples can carry personal data, payment references or contract details. Ask for a rule that these files stay inside the client's environment, are stored in an access-controlled location and are deleted or redacted before they go into a findings report. Findings should cite query patterns and record counts, not copies of customer rows.
Neutralized staging copies for testing
Reproduce slow screens and test fixes on a neutralized duplicate of production rather than on the live database. Odoo documents duplication with neutralization for test copies, which disables items such as scheduled actions and outgoing mail so the copy cannot contact customers. Confirm that the copy was neutralized before anyone logs in, and check that the staging environment has its own credentials and network boundary.
Odoo on-premise docsRisk of debug and profiling on live systems
Debug mode, profiling and verbose logging add overhead and can expose internal paths, stack traces and SQL to any user who can reach them. Limit profiling to short windows, record the change in the change log and avoid leaving debug settings on overnight. Ask the auditor to propose any permanent logging change as a separate, reviewed change.
Leave authentication and access settings unchanged
A performance review should not alter sign-in, two-factor, LDAP, OAuth or user group settings, even to make a test easier. Changing them during a review can lock users out or weaken controls that auditors later check. If a finding touches authentication, such as a slow LDAP lookup at sign-in, document the finding and hand the change to the team that owns identity, with its own approval.
Odoo LDAP docsQuestions buyers ask before commissioning an Odoo performance audit
What drives the cost of an Odoo performance audit?
The written scope drives the cost most. The main inputs are how many screens and processes need profiling, how many custom modules must be read, how large the database is and how much access the review team gets to the deployment. A review of one slow screen on a standard install is a different job from a review of several heavily customized modules on a large database with multiple companies. Ask for a quote that lists each area separately: deployment and worker review, PostgreSQL health, profiling of named screens, custom code review, data growth analysis and the written fix list. Also ask whether retesting after fixes is included, since that is usually a separate line. DeployOpen does not publish a price list, so the quote follows from the scope agreed in writing.
How long does an Odoo performance audit take?
Duration follows the same inputs as cost: the number of screens, the amount of custom code, the database size and how quickly access and staging copies are provided. Most of the calendar time often goes to waiting for access, logs and a representative copy of the data rather than to analysis. Ask the provider to state the review timeline in the written scope, with the dates that depend on your side, such as credentials, a staging copy and a log export. If you run Odoo on Odoo.sh or on-premise, confirm which access the review needs at each stage.
What must our team provide before the audit starts?
Four things make the review faster and more accurate:
- Read access to the Odoo deployment, including the configuration file, worker settings and the custom module source.
- A slow screen you can reproduce on demand, with the user role, the steps and the time it takes.
- A staging copy of the database that matches production in structure and data volume, ideally made with neutralization so no live mail or payments go out.
- Log retention long enough to cover the slow periods, including web, worker and PostgreSQL logs.
Without a reproducible case, the review can only suggest likely causes. Confirm in the quote who prepares the staging copy and where it runs.
Can our internal engineers run the Odoo profiler themselves?
Yes, many teams can. Odoo's built-in profiler can be enabled from developer mode or in code, and an engineer who knows Odoo can record a slow request and read the SQL counts and flame graphs. The harder part is interpreting the results: separating time spent in standard Odoo code from time spent in custom modules, spotting N+1 query patterns and deciding which fix has the best effect for the least risk. Internal staff can capture profiles, while an outside review adds an independent reading and a prioritized list. Ask the provider which parts they will hand over to your team and which they will keep.
Does the audit replace the fixes, or does it only list them?
A performance audit normally ends with a prioritized fix list, and the implementation of those fixes is usually a separate piece of work. The list states what was observed, what is likely to cause it, how much risk each change carries and what to test before it reaches production. Some fixes are configuration changes, such as worker counts or database settings. Others need code changes to custom modules and a test cycle. Ask the provider in writing whether the fixes are included in the quote, whether they are estimated separately and who tests them against your staging copy.
Does the audit cover database growth and long-term load?
It should, because slow screens often come from data that has grown since the system went live. A review looks at table sizes, the indexes that custom fields need, autovacuum activity on busy tables and how queries behave as record counts rise. It also checks whether scheduled actions and long jobs compete with users during business hours. The output should say which growth patterns are expected and which retention or archiving decisions your team must make. Confirm whether the review includes a forecast or only a snapshot of current load.
Does the audit need access to our production systems or data?
The review needs enough access to see how Odoo runs, and it should not need more than that. Configuration, logs, database statistics and the custom code are usually enough for most of the analysis, and profiling can often be done on a staging copy. Where production data is needed, agree on who handles it, where it is stored and how it is deleted afterwards. Odoo's neutralized duplication is designed for test copies, so ask whether the review will work from one. Put the access model, data handling and retention rules in the written scope before any copy is made.
How DeployOpen scopes and delivers a performance audit
A performance audit starts with a written scope, not with a tool run. DeployOpen plans and implements self-hosted Odoo inside your own cloud accounts, data centers or air-gapped networks, so the audit works on the environment your users actually hit. Before any work begins, we agree in writing which Odoo version and database are in scope, which slow screens or jobs were reported, who on your side grants access to the Odoo server, the PostgreSQL host and the code repositories for custom modules, and which changes are out of bounds during the review. Confirm with your team whether a staging copy of production is available. Where it is, the profiling runs there, with neutralized data and the same worker settings, so the audit does not touch live users.
The deliverable is a prioritized fix list backed by evidence. Each item names the component involved, such as the worker configuration in the Odoo server, a connection or memory setting in PostgreSQL, a slow query or profiled request, or a specific custom module method, and shows the measurement behind it. Items are ranked by user impact and by the effort and risk of the change, and each one states how it will be verified. You receive the findings and the fixes as documentation your engineers can keep. If you want the selected fixes built, DeployOpen can implement them under a separate written scope, or you can keep them in-house. A retainer covers continued review after upgrades, data growth or new custom code, and is also scoped in writing.
Two boundaries apply. DeployOpen prepares systems, evidence and documentation for your reviews, but does not issue audit reports, attestations or certifications; independent auditors and certification bodies do that work. Also, the Odoo version you run sets the deadline for vendor support. Odoo sets those windows, not DeployOpen. Odoo's documentation describes standard support for three years after a major release, and Odoo 17.0 standard support ended in September 2026. Confirm your version's dates on Odoo's standard and extended support page before you decide whether a performance fix should wait for an upgrade.

