enable_collect_full_statistic to false and customize a collection task.
Behaviour difference:
- Before 3.2.12 and 3.3.4, to create a custom automatic collection task, you must disable automatic full collection (
enable_collect_full_statistic = false). Otherwise, custom tasks cannot take effect. - Since these version, you can create analyze job and keep system tasks. The user-created tasks would overwrite the system tasks if they have conflicts.
Syntax
Parameter description
-
Collection type
- FULL: indicates full collection.
- SAMPLE: indicates sampled collection.
- If no collection type is specified, sampled collection is used by default.
-
col_name: columns from which to collect statistics. Separate multiple columns with commas (,). If this parameter is not specified, the entire table is collected. -
PROPERTIES: custom parameters. IfPROPERTIESis not specified, the default settings infe.confare used. The properties that are actually used can be viewed via thePropertiescolumn in the output of SHOW ANALYZE JOB.