Skip to content

perf: reduce trending refresh load#972

Merged
raymondjacobson merged 1 commit into
mainfrom
codex/trending-performance-indexes
Jun 29, 2026
Merged

perf: reduce trending refresh load#972
raymondjacobson merged 1 commit into
mainfrom
codex/trending-performance-indexes

Conversation

@raymondjacobson

Copy link
Copy Markdown
Member

Summary

  • add a replacement partial genre index for the live TRACKS/pnagD score slice, then drop redundant/broad track_trending_scores indexes that add refresh write amplification
  • change TrendingJob scheduling so a slow run waits the full interval before the next run instead of consuming a pending ticker event immediately
  • split allTime track score refresh from the hourly week/month pass and gate it with a 24-hour indexing_checkpoints checkpoint

Test

  • go test ./jobs -run TestTrendingJob -count=1
  • go test ./jobs
  • go test ./jobs ./indexer
  • applied ddl/migrations/0225_track_trending_scores_index_cleanup.sql successfully against a throwaway local DB cloned from test_jobs

@raymondjacobson raymondjacobson merged commit 5774df6 into main Jun 29, 2026
5 checks passed
@raymondjacobson raymondjacobson deleted the codex/trending-performance-indexes branch June 29, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant