Skip to main content
Skip table of contents

Cleanup Job Parameters

Getting and Setting Cleanup Job Parameters

CleanUp job parameters define the conditions used to identify entries to be deleted (their age and usage frequency). These parameters can be viewed and set using the getJobProperty and setJobProperty procedures, respectively.

Getting a Cleanup Job Parameter

SQL
CALL "SYSADMIN.getJobProperty"(
    "jobid" => 2,
     "propertyName" => 'CALENDAR_FIELD_VALUE'
) ;;

Setting a Cleanup Job Parameter

SQL
CALL "SYSADMIN.setJobProperty"( 
	"jobid" => 2, 
	"propertyName" => 'CALENDAR_FIELD_VALUE', 
	"propertyValue" => '-17'
) ;;

Parameters

Both procedures take the following parameters:

ParameterDescription
jobidID of the job; mandatory

CALENDAR_FIELD_TYPE

Specifies the time measurement unit that is used to determine whether the entry is old enough to be deleted; at the moment, only the DAY_OF_MONTH calendar field type is supported

CALENDAR_FIELD_VALUE

Specifies the value of the time interval that is used to determine whether the entry is old enough to be deleted; default: 14; mandatory for getJobProperty
FREQUENCYApplicable to optimizations; specifies optimisation usage frequency (optimizations with lower usage frequency are subject to deletion); default: 15

List of Cleanup Jobs Supporting and Not Supporting Parameters

Not all Cleanup jobs support these parameters; they are valid for the following:

  • Clean finished job logs task;
  • Clean finished query logs task;
  • Clean old and never materialized before optimizations task;
  • Clean old histories task;
  • Clean performance metrics task.

These parameters are not supported for the following tasks:

  • Clean invalid indexes task;
  • Clean stale replicator tables task.
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.