Back to index
Summary
Prunes obsolete-for-days data from the Change History tables.daysToKeepLongrequiredNumber of days' of change history data to keep (minimum seven). batchedDeleteBooleanoptionalAllows to split records deletion queries by chunks to minimize usage of transaction undo log. forcePruneAllBooleanoptionalOverride the supplied value of daysToKeep and prune the entire change history, keeping nothing discardable (normally not a good idea -- this is mostly intended for testing). pruneUpgradeObsoleteBooleanoptionalIgnore the supplied value of daysToKeep and instead prune all change data that is obsolete in this version of CloudBees CD/RO. If you make extensive use of Stage entities, and have change history dating from to releases before CloudBees CD/RO 9.0, then running this once after the upgrade to 9.0 should reclaim some database space and might improve change history performance. |
Usage
Perl
$cmdr->pruneChangeHistory( "test-daysToKeep" # daysToKeep # optionals );
ectool
ectool pruneChangeHistory \ "test-daysToKeep" `# daysToKeep` \ # optionals