diff options
| author | Felix Förtsch <mail@felixfoertsch.de> | 2026-08-03 10:58:30 +0200 |
|---|---|---|
| committer | Felix Förtsch <mail@felixfoertsch.de> | 2026-09-01 14:37:44 +0200 |
| commit | 145258865adb5904c9598d1e3e84412204f95b02 (patch) | |
| tree | 9ca6fc4345d341f21809c870c44919d1edf2849e /Emby.Server.Implementations/Sorting/IsFavoriteOrLikeComparer.cs | |
| parent | 4910aafa1a8227a65a037d3d2d299a32691e4de3 (diff) | |
avoid correlated legacy item value filter queries
The legacy filter queries projected ItemValue before grouping tags and genres. EF Core translated that shape into duplicated correlated aggregates, causing multi-minute requests for libraries with many distinct values and blocking unrelated SQLite-backed API calls.
Join ItemValuesMap directly to ItemValues before grouping. This preserves type and item filtering, clean-value grouping, minimum-value selection and ordering while producing one aggregate query. Add an in-memory SQLite regression test for result semantics and both SQL shapes.
Diffstat (limited to 'Emby.Server.Implementations/Sorting/IsFavoriteOrLikeComparer.cs')
0 files changed, 0 insertions, 0 deletions
