4 ms·
It's more like (in good old RDBMS world) 'SELECT * FROM payments' and calculate sum on client vs 'SELECT SUM(amount) FROM payments WHERE some_id = ?' though th
by alexpi 8y ago
It's more like (in good old RDBMS world)
'SELECT * FROM payments' and calculate sum on client
vs
'SELECT SUM(amount) FROM payments WHERE some_id = ?'
though they already had this sum precalculated
- jasonkester 8y agoThat would be more forgivable. This is: 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.