feat(submissions): query bounded anonymous performance snapshots

This commit is contained in:
2026-10-11 03:51:33 +08:00
parent fce7522267
commit 218fa38f8e
5 changed files with 359 additions and 0 deletions
@@ -0,0 +1,21 @@
"""Indexed group watermark for bounded aggregate cache invalidation."""
import sqlalchemy as sa
from alembic import op
revision = "0004_performance_watermark"
down_revision = "0003_submission_performance"
branch_labels = None
depends_on = None
def upgrade() -> None:
op.create_index(
"ix_performance_group_watermark",
"evaluation_performance",
["comparison_group", sa.text("finished_at DESC"), sa.text("evaluation_id DESC")],
)
def downgrade() -> None:
op.drop_index("ix_performance_group_watermark", table_name="evaluation_performance")