Open-Source AI Index Tuning That Runs Inside SQL Server
If your Power BI models sit on top of SQL Server, whether that is DirectQuery, Import from relational sources, or composite models, the indexes on the source tables have a lot to say about how fast your visuals and refreshes run. aisqltuner-index-tuner is a free, MIT-licensed project that does AI index tuning from inside the database, with one stored procedure. What it does sp_AIIndexTuner collects the index diagnostics for a database, sends them to your own Azure OpenAI deployment, stores the recommendations in a table, and can create the new indexes it is able to verify. EXEC dbo.sp_AIIndexTuner; -- recommend only (the default) EXEC dbo.sp_AIIndexTuner @SchemaName = N'Sales', @TableName = N'Orders'; EXEC dbo.sp_AIIndexTuner @Mode = 'CREATE'; -- also create verified new indexes The model sees missing index suggestions, index usage, duplicate and overlapping indexes, the top plan cache statements, Query Store wo...