Skip to content
Back to feed

November 2, 2026 · Google CloudFeature

AlloyDB ai.tune_sql recommends query optimizations using an LLM, in Preview

You can now tune SQL queries using AI. Available starting with version 1.6.2 of the google_ml_integration extension, the ai.tune_sql function uses an LLM along with query execution plans, schemas, and runtime stats to recommend query optimizations. The function identifies performance bottlenecks and provides recommendations for query rewrites, indexes, statistics collection, Grand Unified Configuration (GUC) flags, and table analyze and vacuum operations. This feature is in Preview.

For more information, see Tune SQL queries using AI and Database advisor flags.

Text from the Google Cloud release notes, licensed under CC BY 4.0. Source: Google Cloud release notes.

More AlloyDB for PostgreSQL changes

All AlloyDB for PostgreSQL changes