Skip to content

Commit

Permalink
fixup! Split composite DB index on htlc_infos table
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bast committed Jan 31, 2025
1 parent c2c6bd1 commit 90eb2cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class PgChannelsDb(implicit ds: DataSource, lock: PgLock) extends ChannelsDb wit
// We're changing our composite index to two distinct indices to improve performance.
statement.executeUpdate("CREATE INDEX htlc_infos_channel_id_idx ON local.htlc_infos(channel_id)")
statement.executeUpdate("CREATE INDEX htlc_infos_commitment_number_idx ON local.htlc_infos(commitment_number)")
statement.executeUpdate("DROP INDEX IF EXISTS htlc_infos_idx")
statement.executeUpdate("DROP INDEX IF EXISTS local.htlc_infos_idx")
}

getVersion(statement, DB_NAME) match {
Expand Down

0 comments on commit 90eb2cd

Please sign in to comment.