Skip to content

FINERACT-2559: Fix redundant database query during classification retrieval#5724

Open
kalisingh2277 wants to merge 1 commit intoapache:developfrom
kalisingh2277:FINERACT-2559-fix-redundant-db-query
Open

FINERACT-2559: Fix redundant database query during classification retrieval#5724
kalisingh2277 wants to merge 1 commit intoapache:developfrom
kalisingh2277:FINERACT-2559-fix-redundant-db-query

Conversation

@kalisingh2277
Copy link
Copy Markdown

Description

This PR addresses 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.

…rieval

Signed-off-by: Kali <kalisingh2277@gmail.com>
Copy link
Copy Markdown
Contributor

@DeathGun44 DeathGun44 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants