diff --git a/backend/migrations/versions/e8b3f1a6c2d4_profile_history_reads.py b/backend/migrations/versions/e8b3f1a6c2d4_profile_history_reads.py index 691aad1..b821cd7 100644 --- a/backend/migrations/versions/e8b3f1a6c2d4_profile_history_reads.py +++ b/backend/migrations/versions/e8b3f1a6c2d4_profile_history_reads.py @@ -37,6 +37,8 @@ def upgrade() -> None: op.execute( "CREATE INDEX ix_jobs_kind_created ON jobs (account_id, kind, created_at DESC)" ) + with op.get_context().autocommit_block(): + op.execute("VACUUM (ANALYZE) peer_history") def downgrade() -> None: