Costing Background and Costing Migration processes log
![]() | This feature is available starting from 3.0PR17Q4. |
Introduction
After solving the issue 35384, Costing Background and Costing Migration processes logs have been improved in order to have a way to identify the time required to execute each part of the process and be able to analyze performance problems and make a better diagnosis.
Costing Background Process
Following information has been added to Costing Background process log:
- How many transactions have been processed.
- How many transactions are pending to process.
- Estimated time to finish the execution based on current numbers.
- What part of the process is being executed at the moment:
- CostingBackground.doExecute(): main costing method which loops over each transaction.
- CostingAlgorithm.getTransactionCost(): main method where transaction cost is calculated.
- CostAdjustmentProcess.doProcessCostAdjustment(): main method where cost adjustment is processed.
Costing Migration Process
Following information has been added to Costing Migration process log:
- What part of the process is being executed at the moment:
- CostingMigrationProcess.doChecks().
- CostingMigrationProcess.updateLegacyCosts().
- CostingMigrationProcess.resetTransactionCosts().
- CostingMigrationProcess.fixLegacyCostingCurrency().
- CostingMigrationProcess.updateTrxLegacyCosts().
- CostingMigrationProcess.updateWithZeroCostRemainingTrx().
- CostingMigrationProcess.insertTrxCosts().
- CostingMigrationProcess.insertStandardCosts().
- CostingMigrationProcess.createRules().
- CostingMigrationProcess.processRule().
- CostingMigrationProcess.calculateCosts().