Summary
Currently in Microsoft SQL Server, the sp_MSsubscription_cleanup stored procedure is executed by the sp_MSdistribution_cleanup stored procedure. This, in turn, is executed by the distribution cleanup job.
However, the resource usage of the sp_MSsubscription_cleanup stored procedure is very high: it may take several minutes to complete, and the frequency of the distribution cleanup job is 10 minutes. This means that this costly stored procedure runs every 10 minutes with a duration of several minutes.
This update makes the following changes:
-
The costly sp_MSsubscription_cleanup stored procedure is executed by the sp_expired_subscription_cleanup stored procedure. This, in turn, is executed by the Expired Subscription Clean Up job.
-
The Expired Subscription Clean Up job runs every 24 hours. Therefore, the costly sp_MSsubscription_cleanup stored procedure will run only one time per day.
Resolution
This issue is fixed in the following cumulative updates for SQL Server :
Cumulative Update 6 for SQL Server 2016 RTM
Cumulative Update 3 for SQL Server 2016 SP1
Cumulative Update 5 for SQL Server 2014 SP2
Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:
Latest cumulative update for SQL Server 2016
References
Learn about the terminology that Microsoft uses to describe software updates.