Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top