Issue Feature Closed

#63897Add DataHandler-option enableSuccessLogging to disable logging of successful actions

Stephan Großberndt 12/15/14, 10:36 updated 06/24/25, 08:16

Description

Currently the DataHandler has an option enableLogging.

Importing 5000 records
  • with logging enabled: 216 seconds with multiple internal memory uses up to 100MB
  • with logging disabled 92 seconds and maximum internal memory use 18MB

The performance loss is due to displaying the info about the successful insert in the log.
The log entry features the record header, which might need all the fields of the record if a label_userFunc is used.

If logging is disabled, the performance gain is there but also any notification is lost if something fails.

If there were an additional option
$this->enableSuccessLogging
in DataHandler it would be possible to set

$this->enableLogging = TRUE;
$this->enableSucessLogging = FALSE;
to be notified of any errors when importing but still have the performance gain due to not logging successful inserts and updates.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.