Skip to content

Commit

Permalink
feat: include amount in index (#453)
Browse files Browse the repository at this point in the history
* feat: include amount in index

* fix: split migrations into multiple transactions
  • Loading branch information
reneaaron authored Jan 19, 2024
1 parent c60461b commit 2360406
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
CREATE INDEX CONCURRENTLY IF NOT EXISTS index_transaction_entries_on_credit_account_id_include_amount
ON public.transaction_entries USING btree
(credit_account_id ASC)
INCLUDE
(amount);

--bun:split

CREATE INDEX CONCURRENTLY IF NOT EXISTS index_transaction_entries_on_debit_account_id_include_amount
ON public.transaction_entries USING btree
(debit_account_id ASC)
INCLUDE
(amount);

--bun:split

DROP INDEX IF EXISTS index_transaction_entries_on_debit_account_id;
DROP INDEX IF EXISTS index_transaction_entries_on_credit_account_id;

0 comments on commit 2360406

Please sign in to comment.