简体   繁体   中英

MSSQL Maximum number of statistics per table

As a general rule of thumb, is there a maximum/sensible number of statistics for an individual table on MS SQL Server?

I have a DB which I've noticed has over 100 statistics on a table with 6 indexes.

Auto-created statistics ("WA") are created for columns specified as WHERE clause predicates that are not already indexed to help estimate row counts for better execution plans.

The "dta" stats are generated SSMS advisor tools. These hypothetical stats may have been left behind from a tuning exercise that wasn't completed. See this page from Brent Ozar's sp_Blitz for a script to identify and drop these.

The max number of stats is 30,000 according the maximum capacity specifications documentation .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM