Skip to content

Commit f6d7d0c

Browse files
authored
fix: index principal_stx_txs tx_id to speed up reorg updates (#1080)
1 parent ba2d4de commit f6d7d0c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/migrations/1640651533899_principal_stx_txs.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export async function up(pgm: MigrationBuilder): Promise<void> {
4343
},
4444
});
4545

46+
pgm.createIndex('principal_stx_txs', 'tx_id', { method: 'hash' });
4647
pgm.createIndex('principal_stx_txs', 'principal', { method: 'hash' });
4748
pgm.createIndex('principal_stx_txs', [
4849
{ name: 'block_height', sort: 'DESC' },

0 commit comments

Comments
 (0)