Clean-up

Pacemaker Community Edition as well as Pacemaker Professional provides a clean-up function that removes values for empty columns or relations that are no longer part of the CSV file.

See More cleanup functions Clean-up

Deleting data can significantly impact performance; the clean-up function should get used with caution.

It is recommended to use the add-update operation since it is generally only added or updated if it is already present

Cleanup Flags

Smile category

clean-up-smile-category

Cleanup the position of the product category

Smile Category

{
  "operations": {
    "ce": {
      "catalog_category": {
        "add-update.smile": {
          "plugins": {
            "subject": {
              "id": "import.plugin.subject",
              "params": {
                "clean-up-smile-category": true (1)
              },
              "listeners": [
                {
                  "plugin.process.success": [
                    "import.listener.clean-up.smile-products-categories-position"
                  ]
                }
              ],
              "subjects": [
                {
                  "id": "import_product.subject.bunch",
                  "file-resolver": {
                    "prefix": "smile-position"
                  },
                  "observers": [
                    {
                      "import": [
                        "import_product_smile.observer.composite.add_update"
                      ]
                    }
                  ]
                }
              ]
            }
          }
        }
      }
    }
  }
}
1 To set the clean-up smile-category flag to true or false, true is set by default
  • To disable the clean-up function, override the operations file and set the clean-up-* flags to false in <custom-configuration-dir>/operations.json: