Ir al contenido
Odoo Menú
  • Iniciar sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • e-learning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Inteligencia artificial
    • IoT
    • VoIP
    • Información
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Sectores
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Alimentación y hostelería
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidor de bebidas
    • Hotel
    Inmueble
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Asesoría contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textil
    • Metal
    • Muebles
    • Alimentos
    • Cervecería
    • Regalos corporativos
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Oficios
    • Servicios de mantenimiento
    • Hardware y soporte técnico
    • Sistemas de energía solar
    • Zapatero
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin ánimo de lucro
    • Agencia de protección del medio ambiente
    • Alquiler de vallas publicitarias
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Explorar todos los sectores
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Servicios para partners
    • Registrar tu asesoría contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar 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
Sobre este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Sobre este foro
Ayuda

Have Unused Indexes Slowed Down Your Odoo Database Performance?

Suscribirse

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

Esta pregunta ha sido marcada
postgresqlindexslow
1 Responder
875 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.

Inscribirse
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
12561
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
10172
When Odoo 14 connects to PostgreSQL 15.7, the connection is idle but cannot be released
postgresql
Avatar
0
feb 25
4313
psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: fe_sendauth: no password supplied
postgresql
Avatar
Avatar
Avatar
2
ene 25
12551
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 Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información 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 empresariales de código abierto que cubre 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.

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