Skip to content

Commit

Permalink
feat: include amount in index
Browse files Browse the repository at this point in the history
  • Loading branch information
reneaaron committed Nov 23, 2023
1 parent 8944d65 commit e31450a
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
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);

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);

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 e31450a

Please sign in to comment.