Show first 200 transactions only

This commit is contained in:
2021-12-02 16:23:59 +00:00
parent 61c55dda3a
commit 67139ceff8
2 changed files with 6 additions and 2 deletions

View File

@ -8,9 +8,11 @@ RETURNING *;
SELECT transactions.* FROM transactions
LEFT JOIN accounts ON accounts.id = transactions.account_id
WHERE accounts.budget_id = $1
ORDER BY transactions.date DESC;
ORDER BY transactions.date DESC
LIMIT 200;
-- name: GetTransactionsForAccount :many
SELECT transactions.* FROM transactions
WHERE transactions.account_id = $1
ORDER BY transactions.date DESC;
ORDER BY transactions.date DESC
LIMIT 200;