SchwarzIT / sap-usi-logging-api

An easy-to-use, object-oriented encapsulation around the SAP application log (Transaction SLG1)
Apache License 2.0
23 stars 0 forks source link

Data Container Persistency: Activate Compression #7

Closed NeumannJoerg closed 1 year ago

NeumannJoerg commented 1 year ago

Before saving a log message:

  1. All data containers of that message will be serialized (ABAP => XML).
  2. The single XML documents are combined into one big XML document.
  3. The XML document is converted into binary data and saved to the database.

The XML-to-Binary-Conversion happens in method /USI/CL_BAL_DATA_CONT_COLL_DAO->CONVERT_XML_TO_DB.

But since the statement EXPORT ... TO DATA BUFFER ... does NOT use the addition COMPRESSION ON, the data will NOT be compressed.

Since all containers contain human-readable data (char-like), and char-like data can be massively compressed, enabled compression could reduce the needed disk space by over 90%.

=> The compression should be activated.

NeumannJoerg commented 1 year ago

Implemented with commit afe5c351ff434071fc86ce9959b36ebe50e13916.