[
https://issues.apache.org/jira/browse/FINERACT-2460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18055432#comment-18055432
]
Nidhi Bhawari commented on FINERACT-2460:
-----------------------------------------
{{/accounts}} returns a large array of objects (full account summaries for
every loan). my peformance endpoint returns exactly *two* numbers. Calculating
the total on the database side (via {{SUM}} and {{COALESCE}} query) is
significantly faster than fetching 50 loan objects and summing them in the Java
frontend or mobile app. By returning exactly two numbers instead of a large
object tree, we reduce the time-to-first-render for the Client Profile summary,
which is critical for performance in low-bandwidth environments.
> Add Client Performance API for real-time financial metrics
> ----------------------------------------------------------
>
> Key: FINERACT-2460
> URL: https://issues.apache.org/jira/browse/FINERACT-2460
> Project: Apache Fineract
> Issue Type: New Feature
> Reporter: Nidhi Bhawari
> Priority: Trivial
>
> Implement a new API endpoint {{GET /clients/\{clientId}/performance}} to
> retrieve aggregated financial metrics for a client, including total active
> loans and total outstanding balance (principal + interest + fees +
> penalties). This work is supported by integration tests.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)