Skip to content

Add track_routes slug allocation index#979

Merged
raymondjacobson merged 1 commit into
mainfrom
codex/track-routes-slug-index
Jun 29, 2026
Merged

Add track_routes slug allocation index#979
raymondjacobson merged 1 commit into
mainfrom
codex/track-routes-slug-index

Conversation

@raymondjacobson

Copy link
Copy Markdown
Member

Summary

  • Add a concurrent index on track_routes (owner_id, title_slug, collision_id DESC).
  • Speeds the Core ETL Track Create slug allocation query that does SELECT MAX(collision_id) by owner and title slug before inserting track_routes.

Context

Recent CoreIndexer logs had a Track Create outlier at ~2.46s. The handler calls GenerateSlugAndCollisionID, and the schema only covered track_routes by (owner_id, slug) and track_id; it did not cover the (owner_id, title_slug) lookup used for collision allocation.

Testing

  • git diff --check

@raymondjacobson raymondjacobson merged commit aacdc08 into main Jun 29, 2026
5 checks passed
@raymondjacobson raymondjacobson deleted the codex/track-routes-slug-index branch June 29, 2026 20:03
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