Odoo performance audit for slow databases and custom modules

A performance audit finds why an Odoo instance is slow and ranks fixes by impact. This page explains what the review covers, what it needs from your team and what it cannot promise.

On this page

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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

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.

ScopeWhat it coversWhen it fitsWhat the client must provide
Focused screen auditOne slow screen or workflow, its profiler traces, the custom module code behind it, and the SQL it generatesUsers report one screen, report or action is slow and the rest of the system is acceptableNamed screen or action, steps to reproduce, a test database copy, and access to the custom module repository
Full-stack reviewDeployment and worker setup, PostgreSQL health, profiling of key screens, custom module code, data growth, and a prioritized fix listSlowness is widespread, the cause is unclear, or the system has grown through several customizations and data loadsArchitecture 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 reviewComparison of behavior before and after a version change, custom modules checked against the new version, and regressions in slow pathsRecent major version upgrade, or a planned one, where custom code or data volume may behave differentlyPre- 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 listPlatform changes often, several teams ship custom code, or growth makes slowness recurA standing contact, access to change logs or release records, and agreed review cadence set in the retainer terms
Fixed-scope agreementScope, deliverables and timeline are written before work starts; findings are delivered against that scopeAny level above, so budget and expectations are clear before the review beginsA 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 docs

Risk 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 docs

Questions 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.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.