KamoCRM

Paged repo queries + countByStatus for hot paths

Performancekamo-shared-library
Shipped
28 மே, 2026 அன்று 11:53 PM UTC
Author
Kamo
Commit
1c9fae1

- LoanRepository: countByStatus / countByOrganizationAndStatus + Page<Loan> findByStatus(...) / **************** / **************** + **************** for collision-resistant numbering - LoanPaymentRepository: paged sweeps for AutoDebitRunJob (autodebit + retry + disbursement branches), existsByLoanIdAndKind, findByLoanIdAndStatusAndKindIn (reconciliation), countByLoanIdAndStatus - LoanStatementRepository: **************** for the reminder-scheduling daily sweep Cumulative effect: replaces 5 full-table-scan O(N) / O(N²) cron paths with indexed COUNT(*) + paged WHERE queries.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing