Commit Graph

17 Commits

Author SHA1 Message Date
Felix Förtsch 145258865a 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.
2026-09-01 14:37:44 +02:00
theguymadmax 80fe8c67e9 Fix latest items for mixed libraries 2026-08-19 18:34:21 -04:00
Shadowghost 8044534774 Merge remote-tracking branch 'upstream/master' into fix-byname-queries 2026-08-02 22:12:57 +02:00
Shadowghost d8fc0a9914 Fix AdjacentTo being ignored on non-recursive item queries 2026-07-29 13:13:44 +02:00
Shadowghost a94588497c Fix Folder access filtering 2026-07-28 23:13:10 +02:00
Shadowghost f3a1d56c56 Use DistinctBy where possible 2026-07-26 09:56:49 +02:00
Shadowghost 9aa79682ba Reduce correlated subqueries to improve performance 2026-07-23 20:50:06 +02:00
Shadowghost d4f91ab5ca Fixup 2026-05-04 23:48:09 +02:00
Shadowghost 0d58c773f9 Fix review comments 2026-05-04 21:42:31 +02:00
Shadowghost 2365cea626 Only consider Album creation date 2026-05-04 15:13:00 +02:00
Shadowghost 88cad2ad1a Speed-up LatestItems for Music 2026-05-04 02:00:38 +02:00
Shadowghost 0183127d2a Apply review suggestion 2026-05-03 13:20:12 +02:00
Shadowghost 070e2b2d0c Apply review suggestions 2026-04-26 22:30:52 +02:00
Shadowghost d19449e6a5 Use AsNoTracking() when only reading 2026-04-26 18:53:17 +02:00
Shadowghost ba722b4517 Optimize Search and NextUp queries 2026-03-08 15:26:35 +01:00
Shadowghost ea1c1d0468 Optimize grouping query performance 2026-03-07 20:14:04 +01:00
Shadowghost 077fa89717 Split BaseItemRepository and IItemRepository 2026-03-07 20:12:42 +01:00