feat(etl): port tag_track_user MV and add to refresher (parity 4B)#248
Open
raymondjacobson wants to merge 1 commit intoetl/parity-4a-publish-scheduledfrom
Open
feat(etl): port tag_track_user MV and add to refresher (parity 4B)#248raymondjacobson wants to merge 1 commit intoetl/parity-4a-publish-scheduledfrom
raymondjacobson wants to merge 1 commit intoetl/parity-4a-publish-scheduledfrom
Conversation
…parity 4B) Stack 4B. apps' tag_track_user MV explodes tracks.tags into one row per (tag, track_id, owner_id) and is used for tag-search queries. It only depends on the tracks table which we already have. - Migration 0023 ports the MV definition verbatim from apps' schema including the lowercase + comma-split + filter-non-deleted-public-stems logic, plus indexes on tag and track_id. - materialized_view_refresher.go adds it to the periodic refresh list alongside the two existing dashboard views. Other apps MVs (aggregate_interval_plays, app_name_metrics_*, route_metrics_*) depend on tables not yet in go-openaudio (plays, aggregate_daily_app_name_metrics, route_metrics) — those land if/when their underlying tables do. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stack 4B. apps' `tag_track_user` materialized view explodes `tracks.tags` into one row per `(tag, track_id, owner_id)` and is used for tag-search queries. It only depends on the `tracks` table which we already have.
Other MVs deferred
Other apps MVs depend on tables not yet in go-openaudio:
These land if/when their underlying tables do. Calling them out in the commit so they're not lost.
Stack context
Stacked on #247 (4A — scheduled releases).
Test plan
🤖 Generated with Claude Code