Pages

Monday, January 27, 2014

Why is the size of my SharePoint 2010 User Profile Service sync database so large? Can I shrink it?

Why is the size of my SharePoint 2010 User Profile Service sync database so large? Can I shrink it? 
 
 
There are new stored procedures in the Feb 2012 cumulative update that will keep the size under control.  If you have that patch installed you can run the following:

$timerJob = (Get-SPTimerJob | ? { $_.TypeName -eq "Microsoft.Office.Server.UserProfiles.UserProfileImportJob" })
 $timerJob.KeepHistoryInterval = 1
 $timerJob.Update()
 $timerJob | Start-SPTimerJob


Adjust the KeepHistoryInterval to your liking.  It tells the Sync database how many days of sync history to keep (which is what makes the database grow and grow).
 
 

No comments:

Post a Comment