()
| 148 | } |
| 149 | |
| 150 | async function dropHotPathIndexes(): Promise<void> { |
| 151 | console.log('before: dropping hot-path indexes') |
| 152 | await client.query('DROP INDEX IF EXISTS events_active_pubkey_kind_created_at_idx') |
| 153 | await client.query('DROP INDEX IF EXISTS events_deleted_at_partial_idx') |
| 154 | await client.query('DROP INDEX IF EXISTS invoices_pending_created_at_idx') |
| 155 | } |
| 156 | |
| 157 | async function createHotPathIndexes(): Promise<void> { |
| 158 | console.log('after: creating hot-path indexes') |