Noteworthy:
-
Since the server(s) and database could be configured in a specific way for each customer, we recommend that you test the setting for the timeout property. This should be changed according to the capabilities of the system or its load.
# This will stop the next batch from being processed if the elapsed time from the job start is greater than 1 hour system.delete_not_exists.timeout_seconds=3600
-
The algorithm can be further improved by changing the batch values according to the capabilities of the system:
# Items processed in one prepared statement system.delete_not_exists.batchsize=100000 # Items deleted in one prepared delete statement system.delete_not_exists.delete_batchsize=1000
-
Note: The algorithm could delete more than the initial value stated when running in read-only mode due to cascading deletes being enabled in some tables.
-
For more detailed logging, change the log setting to TRACE for package name org.alfresco.repo.domain.schema.script.DeleteNotExistsExecutor.
Note: This could generate a lot of logging, so revert it to its default logging level when not needed.