Stay organized with collections
Save and categorize content based on your preferences.
This page describes the AlloyDB for PostgreSQL index advisor.
AlloyDB offers a fully managed index advisor that tracks the
queries your database regularly handles. Periodically, the index advisor
analyzes these queries to recommend new indexes that can improve query
performance. Enabling the index advisor lets you detect potential
performance issues with queries and get recommendations for
index optimization.
How does the index advisor work?
The AlloyDB index advisor helps you improve query processing by
doing the following:
Helping you identify a set of indexes.
Providing details to help you create recommended indexes, for example,
estimated storage size and impact of indexes on a query.
You can also use the index advisor with
Query Insights.
The index advisor stores and displays the CREATE INDEX command that contains the
database name, schema name, table name, and column names. The tracked queries
are all normalized queries with all literals removed.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-26 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)."]]