Optimize getClientDeposit #14

Open
opened 4 months ago by inga-lovinde · 0 comments
Owner

Instead of fetching all transactions client has made in a month from DB, parsing their entities, and then iterating over all of them and adding their amounts together: simply SELECT SUM(amount) and let DB do its thing.

Instead of fetching all transactions client has made in a month from DB, parsing their entities, and then iterating over all of them and adding their amounts together: simply `SELECT SUM(amount)` and let DB do its thing.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: inga-lovinde/test-assignment-payments#14
Loading…
There is no content yet.