Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
En esta página, se describe el asesor de índices de AlloyDB para PostgreSQL.
AlloyDB ofrece un asesor de índices completamente administrado que realiza un seguimiento de las consultas que maneja tu base de datos con regularidad. El asesor de índices analiza estas consultas de forma periódica para recomendar índices nuevos que pueden mejorar el rendimiento de las consultas. Habilitar el asesor de índices te permite detectar posibles problemas de rendimiento con las consultas y obtener recomendaciones para la optimización de índices.
¿Cómo funciona el asesor de índices?
El asesor de índices de AlloyDB te ayuda a mejorar el procesamiento de consultas mediante las siguientes acciones:
Te ayuda a identificar un conjunto de índices.
Proporciona detalles para ayudarte a crear índices recomendados, por ejemplo,
el tamaño de almacenamiento estimado y el impacto de los índices en una consulta.
También puedes usar el asesor de índices con Estadísticas de consultas.
El asesor de índices almacena y muestra el comando CREATE INDEX que contiene el nombre de la base de datos, el nombre del esquema, el nombre de la tabla y los nombres de las columnas. Las consultas a las que se les hace un seguimiento son todas las consultas normalizadas sin literales.
Las recomendaciones de índices se encriptan en reposo.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-04 (UTC)"],[[["\u003cp\u003eAlloyDB provides a managed index advisor that analyzes database queries to suggest new indexes for performance improvement.\u003c/p\u003e\n"],["\u003cp\u003eThe index advisor helps users identify and create indexes, providing details like estimated storage size and impact on queries.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCREATE INDEX\u003c/code\u003e command, including database, schema, table, and column names, is displayed for recommended indexes.\u003c/p\u003e\n"],["\u003cp\u003eThe index advisor is designed to work in conjunction with Query Insights, with all queries tracked after literals have been removed, and recommendations encrypted at rest.\u003c/p\u003e\n"]]],[],null,["# Index advisor overview\n\nThis page describes the AlloyDB for PostgreSQL index advisor.\n\nAlloyDB offers a fully managed index advisor that tracks the\nqueries your database regularly handles. Periodically, the index advisor\nanalyzes these queries to recommend new indexes that can improve query\nperformance. Enabling the index advisor lets you detect potential\nperformance issues with queries and get recommendations for\nindex optimization.\n\nHow does the index advisor work?\n--------------------------------\n\nThe AlloyDB index advisor helps you improve query processing by\ndoing the following:\n\n- Helping you identify a set of indexes.\n- Providing details to help you create recommended indexes, for example, estimated storage size and impact of indexes on a query.\n\nYou can also use the index advisor with\n[Query Insights](/alloydb/docs/query-insights-overview).\nThe index advisor stores and displays the `CREATE INDEX` command that contains the\ndatabase name, schema name, table name, and column names. The tracked queries\nare all normalized queries with all literals removed.\n\nIndex recommendations are encrypted at rest.\n\nFor more information about how to use the index advisor, see\n[Use index advisor](/alloydb/docs/use-index-advisor). For more information how\nto use it with query insights, see\n[Use index advisor with query insights](/alloydb/docs/use-index-advisor-with-query-insights)."]]