AI SQL Tuner Studio 3.5.2: Faster, More Reliable Index Tuning

AI SQL Tuner Studio 3.5.2 is a small update focused on SQL Server Index Tuning: it gathers its data faster on large databases and handles more databases correctly.

Faster data collection on large databases

Several Index Tuning steps did far more work than they needed to, and on a large database that time added up. Each one now does that work once:

  • Non-sargable predicates. Studio picks the top 50 statements by CPU first and reads only their execution plans, instead of potentially reading every cached plan in the database.
  • Column cardinality and skewed columns. The list of tables to check is built once, before the statistics are read.
  • Query Store write workload mix. Each query’s text is classified once, instead of once for every runtime statistics row.
  • Index dependencies. Each module’s text is read once, and a fast filter leaves the slower text match only the modules that can contain the index name.

On a test database with 14,000 modules and 20 indexes to check, the index dependencies step went from about a minute to about 4 seconds. The other three changes come from our open-source aisqltuner-index-tuner, where the same fixes cut a whole-database collection on Azure SQL Managed Instance from 279 seconds to 47. The collected data is unchanged, so you get the same analysis sooner.

More reliable results

  • Index dependencies on more databases. The Index Dependencies section failed on a database whose collation differs from the server’s. It now works there, so the report can see what relies on an index before recommending that you drop it.
  • Very long table names. A table whose quoted schema and table name ran past 300 characters had its statistics left out of the column cardinality data. The full name is now used.
  • Report footers. On reports with a sidebar, the footer is no longer partly hidden behind it.

Get 3.5.2

Install AI SQL Tuner Studio from the Microsoft Store, download the Free edition, or click Help → Check for Updates inside Studio. For setup details, see the user guide.


Leave a Reply

Your email address will not be published. Required fields are marked *