diff --git a/rust/processor/src/db/postgres/migrations/2024-08-13-014340_add_latest_market_state/up.sql b/rust/processor/src/db/postgres/migrations/2024-08-13-014340_add_latest_market_state/up.sql index e6f7dc2a5..ec6d24540 100644 --- a/rust/processor/src/db/postgres/migrations/2024-08-13-014340_add_latest_market_state/up.sql +++ b/rust/processor/src/db/postgres/migrations/2024-08-13-014340_add_latest_market_state/up.sql @@ -48,7 +48,8 @@ CREATE TABLE market_latest_state_event ( ); CREATE INDEX mkts_post_bonding_curve_idx -ON market_latest_state_event (market_id) +ON market_latest_state_event (in_bonding_curve) +INCLUDE (market_id) WHERE in_bonding_curve = FALSE; CREATE INDEX unique_mkts_idx