optimized wallet header calculation for better performance

160 ms for three wallets over 9500 transactions
This commit is contained in:
Fran Jurmanović
2021-06-15 20:13:34 +02:00
parent c30da47083
commit ebcb507629
3 changed files with 57 additions and 24 deletions

View File

@@ -20,3 +20,8 @@ type WalletHeader struct {
NextMonth int `json:"nextMonth"`
Currency string `json:"currency"`
}
type WalletTransactions struct {
WalletId string
Transactions []Transaction
}