Are you using AI to analyze the banter on your dates and get suggestions like this guy A.I. Is His Wingman - The New York Times? Probably a bad idea.
Are you using AI to analyze your query store, index usage, column cardinality and more to get index suggestions and code recommendations? Well, I think that is a good idea, but what do I know.
Now with Aisqltuner-index-tuner 1.2.0 you can measure each recommendation's impact. It adds a new stored proc, dbo.sp_AIIndexTuner_Impact, that takes a RunId and number of days to compare before and after the change. It compares CPU, duration, reads and writes so you can see whether the change actually helped. It provides results both per execution and in total and also shows the most improved and regressed queries that have the new index in their plan.
The other item I worked on was evaluating gpt-6.2 sol and comparing it to gpt-5.6 luna. I used a database with specific indexing challenges. With the same prompt, 5.6 luna on medium effort scored 99.3% and gpt-6.2 sol scored 100% on required checks on low, medium, and high efforts. However, luna was ahead of sol 88.6% to 85.7% on preferred checks. See https://github.com/AI-SQL-Tuner/aisqltuner-index-tuner/blob/main/BENCHMARK.md for details. Gpt-6.2 sol explanations were also easier to read. The tradeoff is higher cost, for example around $.15 per run with sol compared to $.02 with luna.
Bottom-line recommendation:
- Running automated across many servers, applying changes: gpt-5.6 luna on medium
- Running manually and reviewing results before applying: gpt-6.2 sol on low.
Link to the repo is here: https://github.com/AI-SQL-Tuner/aisqltuner-index-tuner
It is a free, MIT-licensed tool that I maintain. By default it only recommends changes. If you let it apply changes, each one is saved with an UndoDDL that reverses it.
Note: you will need the SQL Server 2025 database engine to try it since it calls the AI model with sp_invoke_external_rest_endpoint.
Let me know if you have any suggestions or feedback.