Commit 89a0769
committed
Remove sum() from SQL
Instead perform the sum in rust.
TODO: to avoid math performed outside of rust, propose a change to stream
amounts from the storage and perform all math outside of the storage layer,
effectively in rust (wallet or mint)1 parent a04ee46 commit 89a0769
2 files changed
Lines changed: 10 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | | - | |
| 370 | + | |
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
586 | | - | |
| 586 | + | |
587 | 587 | | |
588 | | - | |
| 588 | + | |
| 589 | + | |
589 | 590 | | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
598 | 594 | | |
599 | | - | |
600 | | - | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
601 | 598 | | |
602 | 599 | | |
603 | 600 | | |
| |||
0 commit comments