Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CREATE INDEX IF NOT EXISTS idx_test_daily_totals_date
ON test_daily_totals (date);
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- idx_test_daily_totals_date exists only to make an unscoped
-- SELECT MAX(date) FROM test_daily_totals fast across ~3,700 partitions.
-- Nothing queries MAX(date) without a release filter anymore
-- (dailysummary.MaxSummaryDate and cumulativesummary.MaxDailySummaryDate
-- were the last two callers), so this index is now pure write overhead:
-- every insert into test_daily_totals maintains it for no reader.
DROP INDEX IF EXISTS idx_test_daily_totals_date;
1 change: 1 addition & 0 deletions pkg/db/migrations/MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@
000009_add_lifecycle_to_prow_job_run_tests
000010_drop_test_analysis_by_job_by_dates
000011_add_lifecycle_to_summaries
000012_drop_test_daily_totals_date_index