kalisingh2277 opened a new pull request, #5724:
URL: https://github.com/apache/fineract/pull/5724

   ## Description
   
   This PR addresses 
[FINERACT-2559](https://issues.apache.org/jira/browse/FINERACT-2559).
   
   In the loan product details read path, the classification mapping flow 
previously executed an additional repository query 
(`findAllChargeOffReasonsMappings`) whose result was immediately discarded and 
never used. This created an unnecessary database round trip with no functional 
benefit, adding to database overhead during loan product details retrieval.
   
   ### Changes
   * Removed the unused call to 
`productToGLAccountMappingRepository.findAllChargeOffReasonsMappings(loanProductId,
 portfolioProductType.getValue())` within 
`ProductToGLAccountMappingReadPlatformServiceImpl.fetchClassificationMappings`.
   
   This is a minor performance optimization that eliminates a redundant 
database query without making any functional changes to the codebase.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to