google_db_advisor
AlloyDB index advisor extension for workload analysis and index recommendations.
google_db_advisor · AlloyDB index advisor extension for workload analysis and index recommendations.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101007 | google_db_advisor | google_db_advisor | - | FEAT | Unknown | C |
Usage
Sources:
google_db_advisor is the provider-managed AlloyDB index-advisor extension. It analyzes recorded workload statements and recommends conventional or vector indexes; it does not create the proposed indexes automatically.
Core Workflow
Enable the extension by following the AlloyDB service procedure, run a representative workload, then request an analysis when needed:
Review the evidence behind the recommendations before applying any DDL:
After capturing the result or before starting a clean measurement window, reset the advisor state:
Important Objects
google_db_advisor_recommend_indexes()starts an on-demand analysis.google_db_advisor_recommended_indexesexposes proposed index DDL and recommendation details visible to the current role.google_db_advisor_workload_reportsummarizes the analyzed workload.google_db_advisor_workload_statementsexposes the statements used by the advisor.google_db_advisor_reset()clears the advisor’s collected workload and recommendations.
Provider and Safety Boundaries
- This is an AlloyDB service component, not a portable community package. Availability, enablement, versioning, and privileges follow the selected AlloyDB instance and its current documentation.
- Exercise all important query shapes during the collection window. A partial or unrepresentative workload can produce incomplete recommendations.
- Treat generated DDL as a proposal: check duplicate or overlapping indexes, write amplification, storage, build time, locking, and later removal before applying it.
- Results are filtered by the querying role. Use a deliberate review role and do not assume one user’s result is a cluster-wide inventory.
- Vector index advice has additional service flags and preview limitations documented by Google; verify current provider requirements before using it in production.