Skip to content

Commit 51d9cec

Browse files
committed
chore: try to remove indexes to speed up writes
1 parent a53d9a7 commit 51d9cec

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
name: Clean indexes
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
do $$
2+
begin
3+
set search_path = '{{ .Schema }}';
4+
5+
drop index accounts_address_array;
6+
drop index accounts_address_array_length;
7+
drop index moves_ledger;
8+
drop index moves_range_dates;
9+
drop index moves_account_address;
10+
drop index moves_date;
11+
drop index moves_asset;
12+
drop index transactions_metadata_metadata;
13+
drop index accounts_metadata_metadata;
14+
drop index transactions_date;
15+
drop index transactions_metadata_index;
16+
end
17+
$$;

0 commit comments

Comments
 (0)