diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2026-08-22 17:18:01 +0200 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2026-08-22 17:18:01 +0200 |
| commit | e1af8dce0589b7ef9abc7889993a3c3fbb8b5f52 (patch) | |
| tree | 9c217c6ea6127739eb430af7a8a43d954cb5244a /src/Jellyfin.Database/Jellyfin.Database.Implementations/ModelConfiguration | |
| parent | 335d97d8688957c7813b13e82210c291ae555683 (diff) | |
| parent | 0d02638e82aa06a0a4df147724255fb05c844b7e (diff) | |
Merge remote-tracking branch 'upstream/master' into fix-series-merging
Diffstat (limited to 'src/Jellyfin.Database/Jellyfin.Database.Implementations/ModelConfiguration')
| -rw-r--r-- | src/Jellyfin.Database/Jellyfin.Database.Implementations/ModelConfiguration/MediaStreamInfoConfiguration.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Jellyfin.Database/Jellyfin.Database.Implementations/ModelConfiguration/MediaStreamInfoConfiguration.cs b/src/Jellyfin.Database/Jellyfin.Database.Implementations/ModelConfiguration/MediaStreamInfoConfiguration.cs index afa9eee363..48c537bbd3 100644 --- a/src/Jellyfin.Database/Jellyfin.Database.Implementations/ModelConfiguration/MediaStreamInfoConfiguration.cs +++ b/src/Jellyfin.Database/Jellyfin.Database.Implementations/ModelConfiguration/MediaStreamInfoConfiguration.cs @@ -13,5 +13,9 @@ public class MediaStreamInfoConfiguration : IEntityTypeConfiguration<MediaStream public void Configure(EntityTypeBuilder<MediaStreamInfo> builder) { builder.HasKey(e => new { e.ItemId, e.StreamIndex }); + + // Covering index for the stream filters. ItemId comes second because it is what they project and + // dedupe on; Language and IsExternal follow only to keep their predicates off the table. + builder.HasIndex(e => new { e.StreamType, e.ItemId, e.Language, e.IsExternal }); } } |
