fix(backend): migration vacuums profile history so change reads stay index only

This commit is contained in:
hh committed 2026-10-19 02:57:49 +00:00
1 parent b86e2627d8
commit c8d485fe0e
1 file changed
+2
@@ -37,6 +37,8 @@ def upgrade() -> None:
op.execute( op.execute(
"CREATE INDEX ix_jobs_kind_created ON jobs (account_id, kind, created_at DESC)" "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: def downgrade() -> None: