Skip to content

perf: add missing index on channels.group_id#959

Closed
Serph91P wants to merge 2 commits intom3ue:devfrom
Serph91P:fix/db-indexes
Closed

perf: add missing index on channels.group_id#959
Serph91P wants to merge 2 commits intom3ue:devfrom
Serph91P:fix/db-indexes

Conversation

@Serph91P
Copy link
Copy Markdown
Contributor

@Serph91P Serph91P commented Apr 4, 2026

channels.group_id is used in WHERE clauses across:

  • XtreamApiController (category filtering)
  • ChannelController (index, bulkUpdate filter)
  • ListChannels (Filament relationship filter)
  • UnmergeChannels job

The existing composite indexes (user_id+is_vod+enabled, playlist_id+enabled+is_vod) don't cover standalone group_id lookups.

Serph91P added 2 commits April 4, 2026 13:46
channels.group_id is used in WHERE clauses across:
- XtreamApiController (category filtering)
- ChannelController (index, bulkUpdate filter)
- ListChannels (Filament relationship filter)
- UnmergeChannels job

The existing composite indexes (user_id+is_vod+enabled, playlist_id+enabled+is_vod)
don't cover standalone group_id lookups.
@Serph91P Serph91P marked this pull request as ready for review April 4, 2026 12:43
@sparkison sparkison closed this Apr 6, 2026
@Serph91P Serph91P deleted the fix/db-indexes branch April 6, 2026 14:06
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.

2 participants