Skip to content

Commit

Permalink
Restore Index
Browse files Browse the repository at this point in the history
  • Loading branch information
kderme committed Feb 2, 2024
1 parent ed61714 commit c5d6b8a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ checkForceIndexesArg =
withCustomConfig commandLineForceIndexArgs babbageConfigDir testLabel $ \_ _ dbSyncEnv -> do
startDBSync dbSyncEnv
threadDelay 3_000_000
assertEqQuery dbSyncEnv DB.queryPgIndexesCount 161 "there wasn't the correct number of indexes"
assertEqQuery dbSyncEnv DB.queryPgIndexesCount 162 "there wasn't the correct number of indexes"
where
testLabel = "CLAcheckForceIndexesArg"
commandLineForceIndexArgs =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ checkForceIndexesArg =
startDBSync dbSync

-- Verify number of DB indexes
assertEqQuery dbSync DB.queryPgIndexesCount 161 "unexpected number of indexes"
assertEqQuery dbSync DB.queryPgIndexesCount 162 "unexpected number of indexes"
where
cliArgs = initCommandLineArgs {claForceIndexes = True}
testLabel = "conwayCLACheckForceIndexesArg"
Expand Down
1 change: 1 addition & 0 deletions schema/migration-4-0002-20200810.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

CREATE INDEX IF NOT EXISTS idx_block_time ON block(time);
CREATE INDEX IF NOT EXISTS idx_tx_out_payment_cred ON tx_out(payment_cred);
CREATE INDEX IF NOT EXISTS idx_pool_update_hash_id ON pool_update(hash_id);

0 comments on commit c5d6b8a

Please sign in to comment.