Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • E-learning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Sociale media-marketing
    • E-mailmarketing
    • Sms-marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Artificiële Intelligentie
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelwinkel
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Horeca & Hospitality
    • Bar en café
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van mede-eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brouwerij
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Diensten
    • Klusjesman
    • IT-hardware & ondersteuning
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Alle bedrijfstakken bekijken
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijsprogramma
    • Scale Up! Business Game
    • Odoo bezoeken
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Partner worden
    • Diensten voor partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

Have Unused Indexes Slowed Down Your Odoo Database Performance?

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
postgresqlindexslow
1 Beantwoorden
876 Weergaven
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
Annuleer
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Auteur Beste antwoord

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
Annuleer
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
Is adding Indexes to core fields using modules a good idea? Opgelost
postgresql index override
Avatar
Avatar
1
jun. 23
12562
Add indices to PostgreSQL tables in custom module: Is overriding _auto_init and using _execute_sql the best way? Opgelost
postgresql index v7
Avatar
Avatar
1
apr. 26
10174
When Odoo 14 connects to PostgreSQL 15.7, the connection is idle but cannot be released
postgresql
Avatar
0
feb. 25
4327
psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: fe_sendauth: no password supplied
postgresql
Avatar
Avatar
Avatar
2
jan. 25
12567
Odoo backend to Google Data Studio Opgelost
postgresql
Avatar
Avatar
2
jan. 24
10140
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Partner worden
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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