Quantcast
Viewing all articles
Browse latest Browse all 15889

Updating many statistics on the same table quickly.

We have a table which has close to 400 columns, about 950 million rows and 3400+ partitions. There are 4 statistics created with indexes and another 40+ column statistics. When I tried updating all statistics on the table I noticed sql server is updating single statistics at a time, if I send multiple update statistics command they are blocking each other. The sql server is running 2012 enterprise.

Is there any way I can update all statistics in the table in a single table scan and using as many threads as it needs to update all statistics at once instead of scanning the table for each statistic?

Thank you


Gokhan Varol


Viewing all articles
Browse latest Browse all 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>