09-23-2016 12:57 PM - edited 02-04-2024 4:00 AM
Hi everyone,
we are using hybris/datahub version 5.7.0.15 and want to integrate the datahub cleanup extension to remove unused data from the database. Our scenario is to replicate data from SAP ERP to hybris (using the sapproduct-extensions for that).
These are the possibilities to configure the cleanup extension:
datahub.cleanup.rawitem.enabled=true
datahub.cleanup.canonicalitem.enabled=true
datahub.cleanup.targetitem.enabled=true
datahub.cleanup.publisheditems.enabled=true
datahub.cleanup.canonicalitem.time.delay=0
Are there any recommendations how to set this properties in our scenario? Can switch everything to true? Should we increase the delay for canonical item deletion?
Thanks in advance!
We ended up with this configuration now:
datahub.cleanup.rawitem.enabled=true
datahub.cleanup.canonicalitem.enabled=true
datahub.cleanup.targetitem.enabled=true
datahub.cleanup.publisheditems.enabled=false
Setting datahub.cleanup.publisheditems.enabled to true still leads to problems in datahub.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Never delete canonical item with SUCCESS
status.
The Datahub cleanup has been developed after the SAP ERP replication was shipped and therefore never tested.
Deleting canonical item with SUCCESS
status breaks the basic assumptions of the data hub's normal operation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I agree with you: never delete SUCCESS-Items because SAP extensions look into that items to resolve publications.
As I understand the cleanup extension, it only deletes CanonicalItems of the status ARCHIVED, as described here: https://wiki.hybris.com/display/release5/Automated+Elimination+of+Data+Hub+Auditing+Related+Database...
Setting datahub.cleanup.canonicalitem.enabled=true will delete all canonical items in status ARCHIVED.
Setting datahub.cleanup.publisheditems.enabled=true will delete canonical items in status SUCCESS.
To use the latter property should be carefully considered, because in many scenarios, the presence of canonical items is required to be able to resolve values upon publication. For the standard SAP ERP scenarios, I would recommend using just
datahub.cleanup.rawitem.enabled=true datahub.cleanup.canonicalitem.enabled=true datahub.cleanup.targetitem.enabled=true
User | Count |
---|---|
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.