Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Artificial Intelligence
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Have Unused Indexes Slowed Down Your Odoo Database Performance?

Subscribe

Get notified when there's activity on this post

This question has been flagged
postgresqlindexslow
1 Reply
871 Views
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Hi Odoo Community,

We are trying to better understand real-world performance challenges in Odoo, especially around database efficiency.

One area we are curious about is index usage and potential overhead caused by unused indexes.

  • Have you experienced performance issues related to slow writes (INSERT/UPDATE) in heavily used models?

  • Have you ever investigated whether unused or rarely used indexes might be contributing to this slowdown?

  • In databases with many installed addons, have you noticed a buildup of indexes that may not be actively used?

We understand that:

  • Odoo (including addons) creates multiple indexes (commonly B-tree and GIN)

  • Even if some of these indexes are not frequently used, they still add overhead to write operations

  •  This can impact performance, especially in models with high write activity

So we would like to ask:

  •  Have you ever manually identified or removed unused indexes in your Odoo database?

  • If yes, what approach or tools did you use?

Additionally, would you find value in a system that:

  • Periodically identifies unused or rarely used indexes

  • Suggests or automatically removes them to improve performance

Your experiences and insights would help us understand whether this is a real-world problem and what kind of solution would be most useful.

Thank you!
0
Avatar
Discard
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Author Best Answer

Hi,

we found a solution for the hidden performance cost caused by unused or inefficient indexing in large Odoo deployments.

From our observations:

* Odoo and its addons create a large number of indexes automatically

* Most of these are B-tree indexes created for relational and search operations

* Over time, databases with many installed modules can accumulate indexes that are rarely or never used

* Even unused indexes still increase the cost of:

* INSERT operations

* UPDATE operations

* DELETE operations

* VACUUM and maintenance operations

In high-write Odoo models (such as accounting, sales, stock, messaging, and logging-related tables), we noticed that excessive indexing can noticeably impact write performance.

We also observed that:

* Some queries would benefit more from multi-column indexes instead of multiple single-column indexes

* Certain workloads perform better with partial indexes

* Some equality-heavy lookups may benefit from hash indexes

* In some cases, existing indexes were redundant or rarely used

Based on this, we started exploring an Automatic Index Suggestion and Management system inside PostgreSQL, inspired partly by index advisory concepts used in databases like Oracle.

Our current approach focuses on:

* Monitoring actual query execution behavior

* Identifying slow or expensive query patterns

* Suggesting optimized indexes only when benchmarks show measurable improvement

* Avoiding unnecessary index creation

* Detecting potentially unused or low-value indexes

The system currently evaluates and suggests:

* B-tree indexes

* Hash indexes

* Partial indexes

* Multi-column indexes

Before suggesting an index, we benchmark whether it actually improves overall execution time and whether the write overhead is justified.

We are especially interested in understanding how useful this kind of system would be for real-world Odoo deployments.

We believe smarter index management could help improve:

* ORM performance

* Large transactional workloads

* Module-heavy databases

* Reporting performance

* Overall PostgreSQL efficiency for Odoo

Looking forward to hearing your opinion about this feature.

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Is adding Indexes to core fields using modules a good idea? Solved
postgresql index override
Avatar
Avatar
1
Jun 23
12560
Add indices to PostgreSQL tables in custom module: Is overriding _auto_init and using _execute_sql the best way? Solved
postgresql index v7
Avatar
Avatar
1
Apr 26
10161
When Odoo 14 connects to PostgreSQL 15.7, the connection is idle but cannot be released
postgresql
Avatar
0
Feb 25
4280
psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: fe_sendauth: no password supplied
postgresql
Avatar
Avatar
Avatar
2
Jan 25
12525
Odoo backend to Google Data Studio Solved
postgresql
Avatar
Avatar
2
Jan 24
10140
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk Slovenščina Español (América Latina) Español Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now