by alexpi · 8y ago · 0 comments
though they already had this sum precalculated
SELECT * FROM payments where paymentID = 1
SELECT * FROM payments where paymentID = 2
SELECT * FROM payments where paymentID = 3
...
SELECT * FROM payments where paymentID = 14986
Each of those in its own API request over the wire, then sum them on the client.