Ir al contenido
Odoo Menú
  • Inicia sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Inteligencia artificial
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de propiedades
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Comunidad
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita una demostración
  • Precios
  • Ayuda
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

Have Unused Indexes Slowed Down Your Odoo Database Performance?

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
postgresqlindexslow
1 Responder
879 Vistas
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
Descartar
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Autor Mejor respuesta

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
Descartar
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Registrarse
Publicaciones relacionadas Respuestas Vistas Actividad
Is adding Indexes to core fields using modules a good idea? Resuelto
postgresql index override
Avatar
Avatar
1
jun 23
12563
Add indices to PostgreSQL tables in custom module: Is overriding _auto_init and using _execute_sql the best way? Resuelto
postgresql index v7
Avatar
Avatar
1
abr 26
10177
When Odoo 14 connects to PostgreSQL 15.7, the connection is idle but cannot be released
postgresql
Avatar
0
feb 25
4335
psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: fe_sendauth: no password supplied
postgresql
Avatar
Avatar
Avatar
2
ene 25
12575
Odoo backend to Google Data Studio Resuelto
postgresql
Avatar
Avatar
2
ene 24
10140
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidad
  • Seguridad
الْعَرَبيّة 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 es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y estar totalmente integrado.

Sitio web hecho con

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