Timer job history table has more number of records. Will that cause any issue?
-
07-02-2021 - |
質問
We have a SharePoint 2013 env, it has TimerJobHistory table contains: 1154486 rows.
Will this be any issue?
If this is an issue, how can we purge the data?
Purging data will cause and issue and do we need to take a backup of the table?
解決
We can reduce the amount of data being deleted by the timer job during each run, so I need to modify the daystokeephistory value of the timer job.
The following PowerShell script for your reference:
$history = Get-SPTimerJob | Where-Object {$_.name -eq "job-delete-job-history"}
$history.daystokeephistory = 25
$history.update()
$history.runnow()
More information:
http://convergingpoint.blogspot.com/2012/05/sharepoint-configuration-database-too.html
所属していません sharepoint.stackexchange