Class MaintainDatabaseIndicesJob
This class is intended to be used internally by EPiServer. We do not support any backward compatibility on this. Scheduled job that rebuilds or re-organizes all indices in both CMS and Commerce databases.
Inheritance
System.Object
MaintainDatabaseIndicesJob
Namespace: EPiServer.Business.Commerce.ScheduledJobs
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0Syntax
public class MaintainDatabaseIndicesJob : ScheduledJobBase
Constructors
MaintainDatabaseIndicesJob()
Declaration
public MaintainDatabaseIndicesJob()
Properties
HighFragmentationThreshold
If the avg_fragmentation_in_percent of an index is larger than this value, the index will be rebuit. The default value is 30.
Declaration
public int HighFragmentationThreshold { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
LowFragmentationThreshold
If the avg_fragmentation_in_percent of an index is larger than this value, and smaller or equal to HighFragmentationThreshold value, then the index will be re-orgarnized. The default value is 10.
Declaration
public int LowFragmentationThreshold { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
Execute()
Declaration
public override string Execute()
Returns
Type | Description |
---|---|
System.String |