Skip to content

Commit 520ff60

Browse files
authored
perf(ledger): add index on transactions(id desc) for pagination performance (#1310)
1 parent 3da7f1d commit 520ff60

File tree

2 files changed

+2
-0
lines changed
  • internal/storage/bucket/migrations/50-add-transactions-id-desc-index

2 files changed

+2
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
name: Add transactions id desc index for pagination performance
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
create index {{ if not .Transactional }}concurrently{{end}} transactions_id_desc on "{{.Schema}}".transactions (id desc);

0 commit comments

Comments
 (0)